Native - from v1.11
Optionally perform state migrations of Secret Network smart contracts
Contract Migration on Secret Network
Contract Admin
MigrateMsg
#[entry_point]
pub fn migrate(_deps: DepsMut, _env: Env, msg: MigrateMsg) -> StdResult<Response> {
match msg {
MigrateMsg::Migrate {} => Ok(Response::default()),
MigrateMsg::StdError {} => Err(StdError::generic_err("this is an std error")),
}
}Execute Migration with Secret.js
Query contract migratability
Last updated
Was this helpful?