Unlike older versions of Solidity, Clarity automatically checks for overflows and underflows. If an operation results in a value outside the 128-bit range, the transaction panics and reverts.
← Clarity theorytheory 0/50 · 0%
Security · hard
45. Security: Integer Overflows
How Clarity handles math errors.
Check your understanding
1. What happens on integer overflow in Clarity?