test(contracts): add regression test for burn_internal TransferCooldown cleanup (#296)#689
Open
DSOTec wants to merge 1 commit intoLabsCrypt:mainfrom
Open
Conversation
…wn cleanup Adds test_burn_clears_transfer_cooldown to verify that burn_internal() removes the TransferCooldown storage key. This ensures a reminted user does not inherit a stale cooldown from a previous identity lifecycle. Closes LabsCrypt#296
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.
Linked Issue
Closes #296
Description
The fix for issue #296 (adding
TransferCooldownremoval to burn_internal()) wasalready applied in commit afd66b0. This PR adds a regression test —
test_burn_clears_transfer_cooldown — to ensure the behavior is permanently
covered and cannot silently regress.
The test verifies:
Testing
cargo fmt --check— ✅ passescargo clippy -- -D warnings— ✅ passescargo test -p remittance_nft— ✅ 58/58 tests pass (including the new test)Checklist