Closed bitcoinbrisbane closed 2 weeks ago
The changes in this pull request modify the onlyWhiteListed
modifier in the DynamicEater
contract to restrict the merging of tokens. The condition now ensures that an account cannot merge the same amount of tokens more than once. Additionally, a new test case is added to verify that a proof cannot be reused after a successful merge. Minor formatting adjustments are also included, but they do not impact functionality.
File | Change Summary |
---|---|
contracts/core/merge/DynamicEater.sol | Updated the onlyWhiteListed modifier to restrict merging to unique amounts. Minor formatting changes. |
test/DynamicEater.test.ts | Added a test case to verify that a proof cannot be reused after merging, enhancing test coverage. |
DynamicEater
contract regarding the introduction of a maximum supply for tokens and the adjustments to the merging functions are directly related to the modifications made in the onlyWhiteListed
modifier in the main PR, as both involve tightening the logic around merging operations.SC
, enhancement
🐇 In the garden where tokens play,
A rule was changed, brightening the day.
No more repeats, just one chance to shine,
Merging's now fair, oh how divine!
With tests that guard our precious ground,
Integrity in merging will always be found! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
…replay protection
Summary by CodeRabbit
New Features
Bug Fixes
Style