aboutsummaryrefslogtreecommitdiffstats
path: root/docs/abi-spec.rst
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-07-24 02:30:00 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-07-25 18:23:44 +0800
commit61a8b098e6c2caf55afea3742f5011a41afa5755 (patch)
tree333e99bf31657ff2876c2c631645599ab669741c /docs/abi-spec.rst
parent76bc04244aecb159d98a70bda0594aba57217195 (diff)
downloaddexon-solidity-61a8b098e6c2caf55afea3742f5011a41afa5755.tar.gz
dexon-solidity-61a8b098e6c2caf55afea3742f5011a41afa5755.tar.zst
dexon-solidity-61a8b098e6c2caf55afea3742f5011a41afa5755.zip
Mention that constant and payable are deprecated in the ABI spec
Diffstat (limited to 'docs/abi-spec.rst')
-rw-r--r--docs/abi-spec.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/abi-spec.rst b/docs/abi-spec.rst
index 16839292..82c9f67a 100644
--- a/docs/abi-spec.rst
+++ b/docs/abi-spec.rst
@@ -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.
+.. 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::
Sending non-zero ether to non-payable function will revert the transaction.