Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 406 Bytes

41.md

File metadata and controls

10 lines (7 loc) · 406 Bytes

State Variable Default Visibility

Description:

Labeling the visibility explicitly makes it easier to catch incorrect assumptions about who can access the variable.

Remediation:

Variables can be specified as being public, internal or private. Explicitly define visibility for all state variables.

References:

https://swcregistry.io/docs/SWC-108