Function cosmwasm_std::coins[][src]

pub fn coins<S: Into<String>>(amount: u128, denom: S) -> Vec<Coin>
Expand description

A shortcut constructor for a set of one denomination of coins

Examples

let tip = coins(123, "ucosm");

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