WIKI_TITLE="Public function that could be declared external"
WIKI_TITLE="Public function that could be declared external"
WIKI_DESCRIPTION="`public` functions that are never called by the contract should be declared `external` and its immutable parameters should be located in `calldata` to save gas."
WIKI_DESCRIPTION="`public` functions that are never called by the contract should be declared `external`, and its immutable parameters should be located in `calldata` to save gas."
WIKI_RECOMMENDATION=(
WIKI_RECOMMENDATION=(
"Use the `external` attribute for functions never called from the contract, and change the location of immutable parameters to `calldata` to save gas."
"Use the `external` attribute for functions never called from the contract, and change the location of immutable parameters to `calldata` to save gas."
)
)
@ -110,7 +110,7 @@ class ExternalFunction(AbstractDetector):
# After solc 0.6.9, calldata arguments are allowed in public functions
# After solc 0.6.9, calldata arguments are allowed in public functions