[][src]Function cosmwasm_std::coins

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: HandleResponse = Default::default();
response.messages = vec![CosmosMsg::Bank(BankMsg::Send {
  from_address: env.contract.address,
  to_address: info.sender,
  amount: tip,
})];