Function cosmwasm_std::coins[][src]

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

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![CosmosMsg::Bank(BankMsg::Send {
  to_address: info.sender.into(),
  amount: tip,
})];