mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Mention that constant and payable are deprecated in the ABI spec
This commit is contained in:
parent
76bc04244a
commit
61a8b098e6
@ -418,6 +418,9 @@ A function description is a JSON object with the fields:
|
|||||||
|
|
||||||
Constructor and fallback function never have ``name`` or ``outputs``. Fallback function doesn't have ``inputs`` either.
|
Constructor and fallback function never have ``name`` or ``outputs``. Fallback function doesn't have ``inputs`` either.
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
The fields ``constant`` and ``payable`` are deprecated and will be removed in the future. Instead, the ``stateMutability`` field can be used to determine the same properties.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
Sending non-zero ether to non-payable function will revert the transaction.
|
Sending non-zero ether to non-payable function will revert the transaction.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user