GivingThanks

First Flight #28
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Public functions not called in the `CharityRegistry.sol` contract.

Description: Functions marked as public that are never called internally by the contract should be marked as external to save gas.

Impact:

  • Extra gas cost due to copying function parameters to memory

  • Unnecessary overhead in function calls

Gas Savings:

  • External vs Public call: ~100-200 gas per call

  • Affects all read operations on the contract

Recommended Mitigation:

function isVerified(address charity) external view returns (bool)
Updates

Lead Judging Commences

n0kto Lead Judge 12 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.