NFT Dealers

First Flight #58
Beginner FriendlyFoundry
100 EXP
Submission Details
Impact: low
Likelihood: low

metadataFrozen State Variable Is Declared but Never Read or Written

Author Revealed upon completion

Root + Impact

Description

  • bool public metadataFrozen is declared at the contract level but no function in the protocol reads from it, writes to it, or emits an event based on it. It occupies a storage slot, misleads auditors and integrators into expecting a metadata-freeze mechanism that does not exist, and contributes to unnecessary code complexity.

@> bool public metadataFrozen; // @> declared but never referenced

Recommended Mitigation

- bool public metadataFrozen;

Support

FAQs

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

Give us feedback!