diff --git a/contracts/cw20-ics20/src/contract.rs b/contracts/cw20-ics20/src/contract.rs index 35f946fd4..c4f759db6 100644 --- a/contracts/cw20-ics20/src/contract.rs +++ b/contracts/cw20-ics20/src/contract.rs @@ -209,7 +209,7 @@ pub fn migrate(mut deps: DepsMut, _env: Env, _msg: MigrateMsg) -> Result version { + if storage_version.minor > version.minor { return Err(ContractError::CannotMigrateVersion { previous_version: stored.version, });