mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Document the panic function of library deployment
This commit is contained in:
@@ -598,6 +598,7 @@ function calls which will cause a Panic.
|
||||
A Panic exception is generated in the following situations.
|
||||
The error code supplied with the error data indicates the kind of panic.
|
||||
|
||||
#. 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``).
|
||||
|
||||
Reference in New Issue
Block a user