Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 636 Bytes

function-default-visibility.md

File metadata and controls

11 lines (7 loc) · 636 Bytes

Function Default Visibility

Function visibility can be specified as either: public, private, internal, or external. It's important to consider which visibility is best for your smart contract function.

Many smart contract attacks are caused by a developer forgetting or forgoing to use a visibility modifier. The function is then set as public by default, which can lead to unintended state changes.

Sources