Integer Overflows/Underflows
How They Work
solidity uint8 x = 255; // Max value for uint8 x += 1; // Overflow: x becomes 0solidity uint8 x = 0; // Min value for uint8 x -= 1; // Underflow: x becomes 255
Real-Life Impact
Last updated
