mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user