[−][src]Macro cosmwasm_std::create_entry_points_with_migration
This macro is very similar to the create_entry_points
macro, except it also requires the migrate
method:
pub fn migrate( deps: DepsMut, env: Env, info: MessageInfo, msg: MigrateMsg, ) -> Result<MigrateResponse, StdError> { }
where MigrateMsg
is a type that implements DeserializeOwned + JsonSchema
.
Example
ⓘ
use contract; // The contract module cosmwasm_std::create_entry_points_with_migration!(contract);