Mention that constant and payable are deprecated in the ABI spec

This commit is contained in:
Alex Beregszaszi 2018-07-23 19:30:00 +01:00
parent 76bc04244a
commit 61a8b098e6

View File

@ -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.