Skip to content

Conversation

@Subham2804
Copy link
Contributor

No description provided.

// make sure we're migrating the correct contract and from the correct version
assert_contract_version(deps.storage, &format!("crates.io:{CONTRACT_NAME}"), FROM_VERSION)?;

// this is a standard migration with no state changes
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't add the new address here (which is the way to do it IMO, better visibility / auditability ) However we need to remember to add the new address as a seperate msg in the migration

.unwrap();

let res = migrate(deps.as_mut(), mock_env(), Empty {}).unwrap();
let res = migrate(deps.as_mut(), mock_env(), MigrateMsg::V2_2_3ToV2_3_0 {}).unwrap();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice thanks for cleaning this up :)

@Subham2804 Subham2804 merged commit 4b2f449 into MP-2928 Oct 1, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants