Hawk High

First Flight #39
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Impact: low
Likelihood: low
Invalid

Unused Custom Error `HH__HawkHighFeesNotPaid`, Increases Contract Size and gas

Description:

The custom error HH__HawkHighFeesNotPaid is defined in the contract but never used in any function or modifier. While this does not introduce a security risk, it contributes to unnecessary code bloat.

error HH__HawkHighFeesNotPaid(); //@audit-info - Custom Error defined but never used.

Impact:

  • Slight increase in contract bytecode size.

  • Minor increase in deployment gas cost.

  • Contributes to approaching the EVM's 24 KB maximum contract size limit, which could be problematic in future upgrades.

Recommendation:

Remove the HH__HawkHighFeesNotPaid error if it is not intended to be used.

This reduces contract size and optimizes deployment gas costs.

Updates

Lead Judging Commences

yeahchibyke Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
yeahchibyke Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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

Give us feedback!