pub fn must_pay<T>(
info: &MessageInfo,
denom: &Denom<T>,
) -> Result<AmountU128<T>, MonetaryError>Expand description
Requires exactly one denom sent, which matches the requested denom. Returns the amount if only one denom and non-zero amount. Errors otherwise.