Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 664 Bytes

ERC20 decimals returns a uint8.md

File metadata and controls

19 lines (17 loc) · 664 Bytes

Several tokens incorrectly return a uint256. If this is the case, ensure the value returned is below 255. (See here)


Slide Screenshot

0104.jpg


Slide Text

  • ERC20 decimals
  • Decimals in Tokne Typically 18
  • Return uint8
  • uint256 -> Incorrect
  • Return uint256 -> Check Value <= 255

References


Tags