pub fn coin(amount: u128, denom: impl Into<String>) -> Coin
Expand description

A shorthand constructor for Coin

Examples

let tip = vec![
    coin(123, "ucosm"),
    coin(24, "ustake"),
];

let mut response: Response = Default::default();
response.messages = vec![SubMsg::new(BankMsg::Send {
    to_address: info.sender.into(),
    amount: tip,
})];