Skip to content

Commit a550c79

Browse files
committed
More flexible migration
1 parent 82138f9 commit a550c79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/cw20-ics20/src/contract.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ pub fn migrate(mut deps: DepsMut, _env: Env, _msg: MigrateMsg) -> Result<Respons
209209
});
210210
}
211211
// existing one is newer
212-
if storage_version > version {
212+
if storage_version.minor > version.minor {
213213
return Err(ContractError::CannotMigrateVersion {
214214
previous_version: stored.version,
215215
});

0 commit comments

Comments
 (0)