Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 739 Bytes

Function default visibility.md

File metadata and controls

22 lines (19 loc) · 739 Bytes

Functions without a visibility type specifier are public by default in solc < 0.5.0.

This can lead to a vulnerability where a malicious user may make unauthorized state changes.

solc >= 0.5.0 requires explicit function visibility specifiers. (see here)


Slide Screenshot

054.jpg


Slide Text

  • Function: public/external/internal/private
  • solc < 0.6.0
  • Default: Public
  • Unauthorized Access Removed -> solc 0.5.0
  • Explicit Function Visibility

References


Tags