Skip to content

Latest commit

 

History

History
18 lines (17 loc) · 848 Bytes

Uninitialized state, local variables.md

File metadata and controls

18 lines (17 loc) · 848 Bytes

Uninitialized state/local variables are assigned zero values by the compiler and may cause unintended results e.g. transferring tokens to zero address. Explicitly initialize all state/local variables. (see here and here)


Slide Screenshot

067.jpg


Slide Text

  • Uninitialized State/Local Variables
  • Default Values -> Zero
  • Address -> Zero
  • Bool -> False
  • Initialize Variables -> Avoid Errors

References


Tags