pub fn migrate_contract(deps: DepsMut<'_>) -> Result<Response, ContractError>
Expand description

The main entrypoint function for running a code migration. Auxiliary code run when a stored instance of this contract on chain is migrated over the existing instance. Verifies that the new code instance is a newer version than the current version, and then modifies the contract state to reflect the new version information contained in the stored file.

§Parameters

  • deps A dependencies object provided by the cosmwasm framework. Allows access to useful resources like contract internal storage and a querier to retrieve blockchain objects.