mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add pure to ABI spec
This commit is contained in:
parent
93e6e83093
commit
504e6285f3
@ -295,7 +295,7 @@ The JSON format for a contract's interface is given by an array of function and/
|
||||
- `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: `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` (same as `constant` above), `nonpayable` and `payable` (same as `payable` above).
|
||||
|
||||
`type` can be omitted, defaulting to `"function"`.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user