Skip to content

Commit

Permalink
More flexible migration
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Feb 10, 2022
1 parent 82138f9 commit a550c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/cw20-ics20/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ pub fn migrate(mut deps: DepsMut, _env: Env, _msg: MigrateMsg) -> Result<Respons
});
}
// existing one is newer
if storage_version > version {
if storage_version.minor > version.minor {
return Err(ContractError::CannotMigrateVersion {
previous_version: stored.version,
});
Expand Down

0 comments on commit a550c79

Please sign in to comment.