Function cw_utils::must_pay [−][src]
pub fn must_pay(
info: &MessageInfo,
denom: &str
) -> Result<Uint128, PaymentError>
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.