From 7785f46efd5259f1961cf9fb79bcf8d8439fb6c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Tue, 14 Jun 2022 10:36:43 +0200 Subject: [PATCH] Document the `.selector` member for errors --- docs/contracts/errors.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/contracts/errors.rst b/docs/contracts/errors.rst index 7800317a8..77b224c4e 100644 --- a/docs/contracts/errors.rst +++ b/docs/contracts/errors.rst @@ -1,5 +1,4 @@ -.. index:: ! error, revert - +.. index:: ! error, revert, selector; of an error .. _errors: ******************************* @@ -80,3 +79,8 @@ of the built-in type ``Panic(uint256)``. by default. This means that an inner call can "forge" revert data that looks like it could have come from the contract that called it. + +Members of Errors +================= + +- ``error.selector``: A ``bytes4`` value containing the error selector.