[][src]Macro cosmwasm_std::create_entry_points_with_migration

macro_rules! create_entry_points_with_migration {
    ($contract:ident) => { ... };

This macro is very similar to the create_entry_points macro, except it also requires the migrate method:

pub fn migrate<S: Storage, A: Api, Q: Querier>(
    deps: &mut Extern<S, A, Q>,
    _env: Env,
    msg: MigrateMsg,
) -> MigrateResult {

Where MigrateMsg is a type that implements DeserializeOwned + JsonSchema


This example is not tested
use contract; // The contract module