Merged
Conversation
…addresses registrations
…execution (considering our operational constraints)
There was a problem hiding this comment.
Pull Request Overview
This PR implements security and operational improvements based on audit feedback, focusing on storage durability changes and fixing redemption hash checking.
- Changed permission manager, redemption, and token address registrations from
persistenttoinstancestorage durability - Fixed redemption hash checking logic in
execute_redemptionsby removing duplicate loop and proper status validation - Extended TTL for redemption hash persistence to 60 days to match operational needs
Reviewed Changes
Copilot reviewed 43 out of 46 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| contracts/token/src/contract.rs | Changed storage durability from persistent to instance for permission manager and redemption address storage, consolidated mint_batch validation loop |
| contracts/redemption/src/contract.rs | Changed storage durability to instance, refactored redemption status checking with new helper functions, added 60-day TTL extension |
| contracts/redemption/src/test.rs | Added test case for duplicate redemption hash validation |
| Multiple test snapshot files | Updated test snapshots reflecting storage durability changes from persistent to instance |
| address/dev.json | Updated contract addresses for development environment |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Audit feedback
We have implemented all the relevant feedback
execute_redemptions. We removed the loop and checked properly the status. We added a test to check the appropriate behaviormint_batchoperationpersistenttoinstancebecause it is linked to the contract life cycle.