Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 328 Bytes

explicit-function-visibility.md

File metadata and controls

3 lines (2 loc) · 328 Bytes

Explicit Function Visibility

Explicit function visibility can often provide benefits in terms of smart contract security as well as gas optimization. For example, explicitly labeling external functions forces the function parameter storage location to be set as calldata, which saves gas each time the function is executed.