Solhint

Solhint

Community Analyzer

Explicitly mark visibility in function SOLHINT-W1044

Security
Major

Explicitly mark visibility in function.

Bad Practice

  1. Functions without explicitly marked visibility
function b() { }

Recommended

  1. Functions explicitly marked with visibility
function b() internal { }
function b() external { }
function b() private { }
function b() public { }
constructor() public { }

Learn more

func-visibility on Solhint's documentation.