NFT Dealers

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

Base64 Library Is Imported but Never Used Description

Author Revealed upon completion

Root + Impact

Description

  • import {Base64} from "@openzeppelin/contracts/utils/Base64.sol" appears in the contract header, but no call to Base64.encode or any other Base64 method exists anywhere in the codebase. The unused import increases compiled bytecode size and creates misleading signals about the contract's metadata handling capabilities.

@> import {Base64} from "@openzeppelin/contracts/utils/Base64.sol"; // @> never called

Recommended Mitigation

- import {Base64} from "@openzeppelin/contracts/utils/Base64.sol";

Support

FAQs

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

Give us feedback!