Open code423n4 opened 2 years ago
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.
external
It is recommended that to change the function visibility from public to external if there is no plan to be called from the contract itself.
public
Fixed in previous commit.
Duplicate of #197
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.