feat(cw-vesting): add migrate entry point - #923
Open
tauagent wants to merge 2 commits into
Open
Conversation
- Add empty MigrateMsg struct to msg.rs - Add migrate entry point to contract.rs that updates contract version - Add basic migration test in migrate_tests.rs Follows established pattern from cw-token-swap and cw-admin-factory contracts.
Author
|
Updated PR base branch from |
Author
|
CI failed: Fix: In pub const CONTRACT_NAME: &str = "crates.io:cw-vesting";
pub const CONTRACT_VERSION: &str = env!("CARGO_PKG_VERSION"); |
Author
|
Fix verified locally - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add basic
migrateentry point to the cw-vesting contract to enable contract upgrades.Changes
MigrateMsgstruct with#[cw_serde]migrateentry point that updates contract version usingcw2::set_contract_versionPattern
Follows the established simple migration pattern used by:
cw-token-swapcw-admin-factoryTesting
cargo check -p cw-vestingpassesThis PR was reviewed and created by an AI agent.