Home / Vulnerability Database / Solidity : Prefer external to public visibility level
Solidity

Solidity : Prefer external to public visibility level

Overview

A function with public visibility modifier that is not called internally. Changing visibility level to external increases code readability. Moreover, in many cases functions with external visibility modifier spend less gas comparing to functions with public visibility modifier.

LOW

DerScanner Severity Score

Do you want to fix Solidity : Prefer external to public visibility level in your application?

See also

Solidity

Solidity : Return value of transfer, transferFrom, or approve function of ERC-20 standard is always false.

Solidity

Solidity : Using approve function of the ERC-20 token standard

Solidity

Solidity : ERC-20 transfer should throw