Function cw_utils::one_coin [−][src]
pub fn one_coin(info: &MessageInfo) -> Result<Coin, PaymentError>
Expand description
If exactly one coin was sent, returns it regardless of denom. Returns error if 0 or 2+ coins were sent
pub fn one_coin(info: &MessageInfo) -> Result<Coin, PaymentError>
If exactly one coin was sent, returns it regardless of denom. Returns error if 0 or 2+ coins were sent