medium10 pts · first answer countssoliditysecurity
Overflow in Solidity 0.8
In Solidity 0.8.x, what happens when x is a uint8 equal to 255 and you run x += 1 outside an unchecked block?
In Solidity 0.8.x, what happens when x is a uint8 equal to 255 and you run x += 1 outside an unchecked block?