Functions that are not called internally within the contract can be marked as external
to optimize gas usage.
setTreatCost
Function (Line 43):
trickOrTreat
Function (Line 48):
resolveTrick
Function (Line 118):
withdrawFees
Function (Line 146):
getTreats
Function (Line 152):
changeOwner
Function (Line 156):
Gas Efficiency:
Declaring functions as external
can reduce gas consumption when the functions are called externally.
The Solidity compiler optimizes external function calls by avoiding unnecessary copying of arguments to memory.
Update Function Visibility:
Change the visibility of functions not used internally from public
to external
.
Ensure No Internal Calls:
Verify that the functions are not called from within the contract before changing their visibility.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.