-
Notifications
You must be signed in to change notification settings - Fork 18
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
Remaining solidity native errors #115
Remaining solidity native errors #115
Conversation
Codecov Report
@@ Coverage Diff @@
## main #115 +/- ##
===========================================
+ Coverage 18.17% 48.49% +30.32%
===========================================
Files 247 281 +34
Lines 26470 40912 +14442
Branches 362 0 -362
===========================================
+ Hits 4812 19842 +15030
+ Misses 21459 18768 -2691
- Partials 199 2302 +2103
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
50d0d77
to
dc359c2
Compare
163b476
to
fd3db78
Compare
Admin AlicenetFactoryBase Base64 BClaimsParserLib
Removed redundant/clashing libs
Move from custom chai assertion to hardhat assertion
Removed unused chai helpers
bridge/contracts/libraries/parsers/MerkleProofParserLibrary.sol
Outdated
Show resolved
Hide resolved
LGTM. All contracts and unit tests reviewed. Integration tests passed:
|
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.
Insane amount of logic inversion. Well done - in future we should break this up more.
) | ||
) | ||
); | ||
if (caller_ != ownerOf(tokenID_)) { |
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.
Not concern of this PR as it is out of scope but this line MUST be covered. Noting for ticket creation.
if (caller_ != ownerOf(tokenID_)) { | ||
revert StakingNFTErrors.CallerNotTokenOwner(msg.sender); | ||
} | ||
if (lockDuration_ > _MAX_GOVERNANCE_LOCK) { |
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.
Not concern of this PR as it is out of scope but this line MUST be covered. Noting for ticket creation.
Scope
Solidity native errors for:
Updated immutable auth to auto generate solidity native errors for generated immutable contracts
Installed updated hardhat lib for asserting new custom errors in tests
updated bindings
Why?
MP-591
Todos
If any, what are the follow-up tasks required other than merging this PR? Have they been arranged?