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