You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: storage_version.rs provides version-gate helpers for storage layout migrations, but there are no tests in test_contract.rs that exercise an actual version bump and confirm old data is correctly migrated or rejected.
Implementation & verification: Treat this as a protocol-safety change: check authorization, storage/ABI compatibility, ledger-time behavior, and emitted events before changing the implementation. Add a contract-level regression test for both the invalid and successful paths.
**Required change set **: Change the relevant contract implementation together with its focused contract test, and include a type, error, or deployment-script adjustment only when required.
storage_version.rsprovides version-gate helpers for storage layout migrations, but there are no tests intest_contract.rsthat exercise an actual version bump and confirm old data is correctly migrated or rejected.contracts/common_types/src/storage_version.rs,contracts/common_types/src/test_contract.rs