Mix of external and public function visibility with the same access modifier #29
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
GiveMeTestEther
Vulnerability details
Impact
Functions in the same contract with the same access modifier (e.g. onlyOwner or onlyFactory) have have a mix of public and external visibility.
Set their visibility to external to save gas.
Affected contracts (see ):
Tools Used
Visial Studio Code + Solidity Visual Developer (Plugin)
Recommended Mitigation Steps
Set the visibility to external to save gas.
Extract from Solidity Visual Developer (Plugin) of the Contracts and visibility:
Legend
The text was updated successfully, but these errors were encountered: