Error Code (as uint256 hex number) |
Description |
---|---|
0x00 |
Used for generic compiler inserted panics. |
0x01 |
If you call assert with an argument that evaluates to false . |
0x11 |
If an arithmetic operation results in underflow or overflow outside of an unchecked { ... } block. |
0x12 |
If you divide or modulo by zero (e.g. 5 / 0 or 23 % 0 ) |
0x21 |
If you convert a value that is too big or negative into an enum type. |
0x22 |
If you access a storage byte array that is incorrectly encoded. |
0x31 |
If you call .pop() on an empty array. |
0x32 |
If you access an array, bytesN or an array slice at an out-of-bounds or negative index (i.e. x[i] where i >= x.length or i < 0 ). |
0x41 |
If you allocate too much memory or create an array that is too large. |
0x51 |
If you call a zero-initialized variable of internal function type. |
Created
February 26, 2023 18:57
-
-
Save CJ42/57adf6c5dace0fa079ae1c7cdbaae973 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment