Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 825 Bytes

File metadata and controls

28 lines (25 loc) · 825 Bytes

Use of deprecated functions/operators such as:

  • block.blockhash() for blockhash()
  • msg.gas for gasleft()
  • throw for revert()
  • sha3() for keccak256()
  • callcode() for delegatecall()
  • suicide() for selfdestruct()
  • constant for view
  • var for actual type name

These should be avoided to prevent unintended errors with newer compiler versions. (see here)


Slide Screenshot

053.jpg


Slide Text

  • Deprecated Keywords
  • E.g.: msg.gas, throw, sha3, constant, var etc.
  • Compiler Warnings -> Errors
  • Avoid Deprecated Keywords

References


Tags