Function cosmwasm_std::coin [−][src]
pub fn coin<S: Into<String>>(amount: u128, denom: S) -> 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, })];