08.SWC-108_State Variable Default Visibility
2023-07-13 16:11:04
# 09.SWC
SWC-108_State Variable Default Visibility
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
orprivate
. Explicitly define visibility for all state variables.
vulnerability contract
1 | pragma solidity 0.4.24; |