-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove immutable property for decimal in zrc20 #332
Conversation
Important Review skippedReview was skipped due to path filters Files ignored due to path filters (6)
You can disable this status message by setting the WalkthroughWalkthroughThe recent changes to the Changes
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? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Outside diff range, codebase verification and nitpick comments (1)
v2/contracts/zevm/ZRC20.sol (1)
46-46
: Consider the implications of making_decimals
mutable.Changing
_decimals
fromimmutable
to a standarduint8
allows it to be modified after deployment. This flexibility can be useful but also poses risks:
- Interoperability: Ensure that any systems or contracts interacting with this token can handle changes in decimal precision.
- Consistency: Consider adding mechanisms to manage or restrict changes to
_decimals
to prevent unexpected behavior.Evaluate whether additional safeguards or documentation are needed to address these concerns.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #332 +/- ##
=======================================
Coverage 82.35% 82.35%
=======================================
Files 7 7
Lines 306 306
Branches 99 99
=======================================
Hits 252 252
Misses 54 54 ☔ View full report in Codecov by Sentry. |
Forgot to generate, fixed now, the test in node works |
To keep the storage layout compatible with zrc20 v1
Summary by CodeRabbit
New Features
Impacts