Snowman Merkle Airdrop

First Flight #42
Beginner FriendlyFoundrySolidityNFT
100 EXP
Submission Details
Impact: low
Likelihood: low

Unused error initialization increases gas cost

Author Revealed upon completion

Unused error initialization increases the gas cost

Description

  • src/Snowman.sol contract file contains an unused error SM__NotAllowed

error SM__NotAllowed()

Risk

Used error can increase the gas cost during deploying the smart contract

Proof of Concept

error SM__NotAllowed()

Recommended Mitigation

- remove this code
error SM__NotAllowed()

Support

FAQs

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