aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-07-17 17:38:29 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-15 18:35:50 +0800
commit12f3257e7d0e23502eb01a28c857ed56d9d2dbdc (patch)
tree1a083e630b49b771edb7ed5acc60f9b696bbf5ff /docs
parentdca1f45cb7a45a85a1a8206254de23342a870101 (diff)
downloaddexon-solidity-12f3257e7d0e23502eb01a28c857ed56d9d2dbdc.tar.gz
dexon-solidity-12f3257e7d0e23502eb01a28c857ed56d9d2dbdc.tar.zst
dexon-solidity-12f3257e7d0e23502eb01a28c857ed56d9d2dbdc.zip
Add statemutability field to the ABI
Diffstat (limited to 'docs')
-rw-r--r--docs/abi-spec.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/abi-spec.rst b/docs/abi-spec.rst
index 2cf57427..7a1a9af0 100644
--- a/docs/abi-spec.rst
+++ b/docs/abi-spec.rst
@@ -294,7 +294,8 @@ The JSON format for a contract's interface is given by an array of function and/
* `type`: the canonical type of the parameter.
- `outputs`: an array of objects similar to `inputs`, can be omitted if function doesn't return anything;
- `constant`: `true` if function is :ref:`specified to not modify blockchain state <constant-functions>`);
-- `payable`: `true` if function accepts ether, defaults to `false`.
+- `payable`: `true` if function accepts ether, defaults to `false`;
+- `statemutability`: a string with one of the following values: `view` (same as `constant` above), `nonpayable` and `payable` (same as `payable` above).
`type` can be omitted, defaulting to `"function"`.