Document the .selector member for errors

This commit is contained in:
Kamil Śliwak 2022-06-14 10:36:43 +02:00
parent 5375dfff9d
commit 7785f46efd

View File

@ -1,5 +1,4 @@
.. index:: ! error, revert .. index:: ! error, revert, selector; of an error
.. _errors: .. _errors:
******************************* *******************************
@ -80,3 +79,8 @@ of the built-in type ``Panic(uint256)``.
by default. This means that an inner call by default. This means that an inner call
can "forge" revert data that looks like it could have come from the can "forge" revert data that looks like it could have come from the
contract that called it. contract that called it.
Members of Errors
=================
- ``error.selector``: A ``bytes4`` value containing the error selector.