-
Notifications
You must be signed in to change notification settings - Fork 3
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: [audit] ZNS-12 Missing input validation #65
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## development #65 +/- ##
============================================
Coverage 99.79% 99.79%
============================================
Files 11 11
Lines 477 480 +3
Branches 116 119 +3
============================================
+ Hits 476 479 +3
Misses 1 1 |
governorAddresses: [ ethers.constants.AddressZero ], | ||
adminAddresses: [ ethers.constants.AddressZero ], | ||
}) | ||
).to.be.revertedWith("ZNSAccessController: Can't grant role to zero address"); |
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.
Consider adding the new errors to the "errors" file and reference them as constants like we have been doing for all the others
const newFeePerc = BigNumber.from(10001); | ||
await expect( | ||
zns.curvePricer.connect(user).setFeePercentage(domainHash, newFeePerc) | ||
).to.be.revertedWith("ZNSCurvePricer: feePercentage cannot be greater than PERCENTAGE_BASIS"); |
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.
Same as other comment regarding storing errors as constants for referencing
fix: [audit] ZNS-12 Missing input validation
🚨 Vulnerabilities Summary
For more details view the full report in OpenZeppelin Code |
🎉 This PR is included in version 0.6.4 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
No description provided.