Clarity theorytheory 0/50 · 0%
Security · hard

45. Security: Integer Overflows

How Clarity handles math errors.

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.

Check your understanding

  1. 1. What happens on integer overflow in Clarity?