Beginner FriendlyDeFiFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

You can use verifyCalldata instead verify, this saves gas for the user.

[G-1] You can use verifyCalldata instead verify, this saves gas for the user.

Description: You can use MerkleProof::verifyCalldata to reduce gas consumption.

- if (!MerkleProof.verify(merkleProof, i_merkleRoot, leaf)) {
+ if (!MerkleProof.verifyCalldata(merkleProof, i_merkleRoot, leaf)) {
Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.