diff options
author | chriseth <chris@ethereum.org> | 2017-08-15 23:39:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-15 23:39:20 +0800 |
commit | 29cf3d9c585b836a19b6a8c054c51bd4e545533f (patch) | |
tree | 10f99868e89e3de22dd6fd6ad560024ce9bba810 /docs | |
parent | 7091503d82dca7cb1a505753c63160fddf4a0d86 (diff) | |
parent | 1f5ab603a74ded4058d3c7103e436112852b45ba (diff) | |
download | dexon-solidity-29cf3d9c585b836a19b6a8c054c51bd4e545533f.tar.gz dexon-solidity-29cf3d9c585b836a19b6a8c054c51bd4e545533f.tar.zst dexon-solidity-29cf3d9c585b836a19b6a8c054c51bd4e545533f.zip |
Merge pull request #2732 from ethereum/statemutability-abi
Add statemutability field to ABI
Diffstat (limited to 'docs')
-rw-r--r-- | docs/abi-spec.rst | 3 |
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"`. |