pub fn send_to_treasury(
    msgs: Vec<CosmosMsg>,
    treasury_address: &Addr,
) -> StdResult<CosmosMsg<Empty>> {
    Ok(CosmosMsg::Wasm(WasmMsg::Execute {
        contract_addr: treasury_address.to_string(),
        msg: to_binary(&ExecuteMsg::DAppAction { msgs })?,
        funds: vec![],
    }))
}
/// Constructs the treasury dapp action message used by all dApps.
Constructs the treasury dapp action message used by all dApps.
Constructs the treasury dapp action message used by all dApps .
pub fn send_to_treasury(
    msgs: Vec<CosmosMsg>,
    treasury_address: &Addr,
) -> StdResult<CosmosMsg<Empty>> {
    Ok(CosmosMsg::Wasm(WasmMsg::Execute {
        contract_addr: treasury_address.to_string(),
        msg: to_binary(&ExecuteMsg::DAppAction { msgs })?,
        funds: vec![],
    }))
}
pub fn send_to_treasury ( msgs : Vec < CosmosMsg > , treasury_address : & Addr , ) -> StdResult < CosmosMsg < Empty > > { Ok ( CosmosMsg :: Wasm ( WasmMsg :: Execute { contract_addr : treasury_address . to_string ( ) , msg : to_binary ( & ExecuteMsg :: DAppAction { msgs } ) ? , funds : vec ! [ ] , } ) ) }
Constructs the treasury dapp action message used by all dApps.
Constructs the treasury dapp action message used by all dApps .
msgs
Vec<CosmosMsg>
treasury_address
&Addr
msgs
Vec<CosmosMsg>
treasury_address
&Addr