/// Helper function for sending 2 times a coin amount to an address
Helper function for sending 2 times a coin amount to an address
Helper function for sending 2 times a coin amount to an address
fn send_double_tokens(to_address: Addr, amount: Vec<Coin>) -> Response {
    // let attributes = vec![attr("action", action), attr("to", to_address.clone())];
    Response::new().add_messages(vec![
        CosmosMsg::Bank(BankMsg::Send {
            to_address: to_address.clone().into(),
            amount: amount.clone(),
        }),
        CosmosMsg::Bank(BankMsg::Send {
            to_address: to_address.into(),
            amount,
        }),
    ])
}
fn send_double_tokens ( to_address : Addr , amount : Vec < Coin > ) -> Response { // let attributes = vec![attr("action", action), attr("to", to_address.clone())]; Response :: new ( ) . add_messages ( vec ! [ CosmosMsg Bank ( BankMsg Send { to_address to_address clone ( ) into ( ) amount amount clone ( ) } ) CosmosMsg Bank ( BankMsg Send { to_address to_address into ( ) amount } ) ] ) }
Helper function for sending 2 times a coin amount to an address
Helper function for sending 2 times a coin amount to an address
to_address
Addr
amount
Vec<Coin>