Gas Optimizations #149
Labels
bug
Something isn't working
G (Gas Optimization)
resolved
Finding has been patched by sponsor (sponsor pls link to PR containing fix)
Public Function Can Be Changed to External
Description
The public functions that have not been called by the contract itself should be marked as
external
instead to save more gas and enforce the least privilege principle.Permalinks
Mitigation
It is recommended that to change the function visibility from
public
toexternal
if there is no plan to be called from the contract itself.The text was updated successfully, but these errors were encountered: