aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-24 22:32:23 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-25 19:37:23 +0800
commitf791ca3957e30ba89763d3cf3327ed3e58d21b15 (patch)
treedf4d4e8cc4fcca91874137dd6217b263c61b8c92 /docs
parentbb493bf52d174ee1095db268453ad500de15c6a5 (diff)
downloaddexon-solidity-f791ca3957e30ba89763d3cf3327ed3e58d21b15.tar
dexon-solidity-f791ca3957e30ba89763d3cf3327ed3e58d21b15.tar.gz
dexon-solidity-f791ca3957e30ba89763d3cf3327ed3e58d21b15.tar.bz2
dexon-solidity-f791ca3957e30ba89763d3cf3327ed3e58d21b15.tar.lz
dexon-solidity-f791ca3957e30ba89763d3cf3327ed3e58d21b15.tar.xz
dexon-solidity-f791ca3957e30ba89763d3cf3327ed3e58d21b15.tar.zst
dexon-solidity-f791ca3957e30ba89763d3cf3327ed3e58d21b15.zip
Clarify ABI regarding constant
Diffstat (limited to 'docs')
-rw-r--r--docs/abi-spec.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/abi-spec.rst b/docs/abi-spec.rst
index c0969cae..fffd9a2c 100644
--- a/docs/abi-spec.rst
+++ b/docs/abi-spec.rst
@@ -293,9 +293,9 @@ The JSON format for a contract's interface is given by an array of function and/
* `name`: the name of the parameter;
* `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 <view-functions>`);
- `payable`: `true` if function accepts ether, defaults to `false`;
-- `stateMutability`: a string with one of the following values: `pure` (:ref:`specified to not read blockchain state <pure-functions>`), `view` (same as `constant` above), `nonpayable` and `payable` (same as `payable` above).
+- `stateMutability`: a string with one of the following values: `pure` (:ref:`specified to not read blockchain state <pure-functions>`), `view` (:ref:`specified to not modify the blockchain state <view-functions>`), `nonpayable` and `payable` (same as `payable` above).
+- `constant`: `true` if function is either `pure` or `view`
`type` can be omitted, defaulting to `"function"`.