Skip to content

Commit 7785f46

Browse files
committed
Document the .selector member for errors
1 parent 5375dff commit 7785f46

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/contracts/errors.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
.. index:: ! error, revert
2-
1+
.. index:: ! error, revert, selector; of an error
32
.. _errors:
43

54
*******************************
@@ -80,3 +79,8 @@ of the built-in type ``Panic(uint256)``.
8079
by default. This means that an inner call
8180
can "forge" revert data that looks like it could have come from the
8281
contract that called it.
82+
83+
Members of Errors
84+
=================
85+
86+
- ``error.selector``: A ``bytes4`` value containing the error selector.

0 commit comments

Comments
 (0)