Skip to content

Latest commit

 

History

History
18 lines (17 loc) · 617 Bytes

Dangerous unary expressions.md

File metadata and controls

18 lines (17 loc) · 617 Bytes

Unary expressions such as x =+ 1 are likely errors where the programmer really meant to use x += 1. Unary + operator was deprecated in solc v0.5.0. (see here)


Slide Screenshot

048.jpg


Slide Text

  • Unary Expressions -> Typo Susceptibility
  • x += 1
  • x =+ 1
  • Increment vs. Re-initialize
  • Unary <- Deprecated solc 0.5.0

References


Tags