Merge pull request #12921 from ethereum/add_event_and_error_selector_fields_on_the_line_of_function_selector_field

Adding event and error selector fields
This commit is contained in:
chriseth
2022-05-23 11:34:13 +02:00
committed by GitHub
13 changed files with 273 additions and 5 deletions
+10
View File
@@ -73,6 +73,16 @@ four indexed arguments rather than three.
In particular, it is possible to "fake" the signature of another event
using an anonymous event.
Members of Events
=================
- ``event.selector``: For non-anonymous events, this is a ``bytes32`` value
containing the ``keccak256`` hash of the event signature, as used in the default topic.
Example
=======
.. code-block:: solidity
// SPDX-License-Identifier: GPL-3.0