specify "receive" as having no "name"

This commit is contained in:
Evan Saulpaugh 2023-02-05 16:13:23 -06:00
parent f2bf23a067
commit 821da895ea
No known key found for this signature in database
GPG Key ID: 1C6170B9A66FD032

View File

@ -563,7 +563,7 @@ A function description is a JSON object with the fields:
blockchain state <pure-functions>`), ``view`` (:ref:`specified to not modify the blockchain
state <view-functions>`), ``nonpayable`` (function does not accept Ether - the default) and ``payable`` (function accepts Ether).
Constructor and fallback function never have ``name`` or ``outputs``. Fallback function doesn't have ``inputs`` either.
Constructor, receive, and fallback never have ``name`` or ``outputs``. Receive and fallback don't have ``inputs`` either.
.. note::
Sending non-zero Ether to non-payable function will revert the transaction.