[][src]Function cw0::must_pay

pub fn must_pay(
    info: &MessageInfo,
    denom: &str
) -> Result<Uint128, PaymentError>

Requires exactly one denom sent, which matches the requested denom. Returns the amount if only one denom and non-zero amount. Errors otherwise.