pub fn execute_action(
    deps: DepsMut,
    msg_info: MessageInfo,
    msgs: Vec<CosmosMsg<Empty>>,
) -> TreasuryResult {
    let state = STATE.load(deps.storage)?;
    if !state
        .dapps
        .contains(&deps.api.addr_validate(msg_info.sender.as_str())?)
    {
        return Err(TreasuryError::SenderNotWhitelisted {});
    }

    Ok(Response::new().add_messages(msgs))
}
/// Executes actions forwarded by whitelisted contracts
/// This contracts acts as a proxy contract for the dApps
Executes actions forwarded by whitelisted contracts
This contracts acts as a proxy contract for the dApps
Executes actions forwarded by whitelisted contracts This contracts acts as a proxy contract for the dApps
pub fn execute_action(
    deps: DepsMut,
    msg_info: MessageInfo,
    msgs: Vec<CosmosMsg<Empty>>,
) -> TreasuryResult {
    let state = STATE.load(deps.storage)?;
    if !state
        .dapps
        .contains(&deps.api.addr_validate(msg_info.sender.as_str())?)
    {
        return Err(TreasuryError::SenderNotWhitelisted {});
    }
    Ok(Response::new().add_messages(msgs))
}
pub fn execute_action ( deps : DepsMut , msg_info : MessageInfo , msgs : Vec < CosmosMsg < Empty > > , ) -> TreasuryResult { let state = STATE . load ( deps . storage ) ? ; if ! state . dapps . contains ( & deps . api . addr_validate ( msg_info . sender . as_str ( ) ) ? ) { return Err ( TreasuryError :: SenderNotWhitelisted { } ) ; } Ok ( Response :: new ( ) . add_messages ( msgs ) ) }
Executes actions forwarded by whitelisted contracts
This contracts acts as a proxy contract for the dApps
Executes actions forwarded by whitelisted contracts This contracts acts as a proxy contract for the dApps
deps
DepsMut
msg_info
MessageInfo
msgs
Vec<CosmosMsg<Empty>>
deps
DepsMut
msg_info
MessageInfo
msgs
Vec<CosmosMsg<Empty>>