ExecuteMsg
ExecuteMsg
#[andr_exec]
#[cw_serde]
pub enum ExecuteMsg {
...
} _ => ADOContract::default().execute(ctx, msg),use andromeda_std::{common::context::ExecuteContext};
pub fn execute(ctx: ExecuteContext, msg: ExecuteMsg) -> Result<Response, ContractError> {
ExecuteMsg::Propose {
title,
description,
msgs,
latest,
} => execute_propose(ctx, title, description, msgs, latest),
}pub fn execute(
deps: DepsMut,
env: Env,
info: MessageInfo,
msg: ExecuteMsg,
) -> Result<Response<Empty>, ContractError> {
match msg {
ExecuteMsg::Propose {
title,
description,
msgs,
latest,
} => execute_propose(deps, env, info, title, description, msgs, latest),
}Last updated
Was this helpful?