-
Notifications
You must be signed in to change notification settings - Fork 54
Contract Tests: Migration with stale version is rejected #210
Copy link
Copy link
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programcontractsmart contract related worksmart contract related worksecurity
Description
Contract Tests: Migration with stale version is rejected
Description:
migrate() checks version progression but needs stronger explicit negative tests.
Context:
Version monotonicity is critical for safe upgrades.
Requirements:
- Add test calling
migrate()withnew_version <= current_version - Assert
InvalidVersionerror - Ensure valid higher version still succeeds
Files to Modify:
contracts/account/src/lib.rs
Definition of Done:
- Implementation is complete for this single task
- Contract tests updated or added where needed
- Existing contract tests remain green
Labels: security, Stellar Wave
Estimated Effort: 1 day
Priority: Medium
Questions or need help?** Join our Telegram community
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programcontractsmart contract related worksmart contract related worksecurity