Uint = 2^256-1 is the largest uint

Keep in mind:

  • Any number larger the Uint = 2^256-1 will cause an overflow.  We need to prevent our contracts from overflowing. To do so one can use a SafeMath library in order to prevent a hack.

  • Any number that is smaller than the minimum will cause an underflow. To do so one can use a SafeMath library in order to prevent a hack.

  • Uint data types take up 32 bytes

Leave a Reply