Macro cosmwasm_std::create_entry_points_with_migration [−][src]
macro_rules! create_entry_points_with_migration {
($contract : ident) => { ... };
}👎 Deprecated:
create_entry_points and create_entry_points_with_migration should be replaces by the #[entry_point] macro as shown in https://github.com/CosmWasm/cosmwasm/blob/main/MIGRATING.md#013—014. They’ll be removed before the final 1.0.0 release. Sorry for the short notice.
Expand description
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,
msg: MigrateMsg,
) -> Result<Response, StdError> {
}where MigrateMsg is a type that implements DeserializeOwned + JsonSchema.
Example
ⓘ
use contract; // The contract module
cosmwasm_std::create_entry_points_with_migration!(contract);