DatingDapp

First Flight #33
Beginner FriendlyFoundrySolidityNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

[I-3] Unused error declaration in `MultiSig` contract (Dead Code)

Description: The MultiSig contract declares the error NotEnoughApprovals() but never uses it in the code. Unused declarations increase contract size unnecessarily.

error NotEnoughApprovals();

Impact:

  • Unnecessary bytecode size

  • Slightly higher deployment costs

  • Code confusion for developers

  • Reduced code maintainability

Recommended Mitigation: Either:

  1. Remove the unused error:

- error NotEnoughApprovals();
  1. Or use it where appropriate instead of require statements if needed.

Updates

Appeal created

n0kto Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Informational or Gas

Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelyhood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.

Support

FAQs

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