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: recipient,
amount: tip,
})];