Skip to content

Latest commit

 

History

History
18 lines (17 loc) · 722 Bytes

State-modifying functions.md

File metadata and controls

18 lines (17 loc) · 722 Bytes

Functions that modify state (in assembly or otherwise) but are labelled constant/pure/view revert in solc >=0.5.0 (work in prior versions) because of the use of STATICCALL opcode. (see here)


Slide Screenshot

036.jpg


Slide Text

  • Contract State Modifications
  • Functions: view or pure
  • solc >= 0.5.0
  • STATICCALL -> Revert
  • Function Mutability -> Check & Apply

References


Tags