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