mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
`type
field in ABI JSON no longer defaults to
function
`
This commit is contained in:
parent
f4d990e5be
commit
793b1890e8
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
Breaking changes:
|
Breaking changes:
|
||||||
* ABI: remove the deprecated ``constant`` and ``payable`` fields.
|
* ABI: remove the deprecated ``constant`` and ``payable`` fields.
|
||||||
|
* ABI: the ``type`` field is now required and no longer specified to default to ``function``.
|
||||||
* Commandline interface: remove the text-based ast printer (``--ast``).
|
* Commandline interface: remove the text-based ast printer (``--ast``).
|
||||||
* General: Disallow explicit conversions from external function types to ``address`` and add a member called ``address`` to them as replacement.
|
* General: Disallow explicit conversions from external function types to ``address`` and add a member called ``address`` to them as replacement.
|
||||||
* Type checker: Resulting type of exponentiation is equal to the type of the base. Also allow signed types for the base.
|
* Type checker: Resulting type of exponentiation is equal to the type of the base. Also allow signed types for the base.
|
||||||
|
@ -455,8 +455,6 @@ A function description is a JSON object with the fields:
|
|||||||
- ``outputs``: an array of objects similar to ``inputs``, can be omitted if function doesn't return anything;
|
- ``outputs``: an array of objects similar to ``inputs``, can be omitted if function doesn't return anything;
|
||||||
- ``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`` (function does not accept Ether) and ``payable`` (function accepts Ether);
|
- ``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`` (function does not accept Ether) and ``payable`` (function accepts Ether);
|
||||||
|
|
||||||
``type`` can be omitted, defaulting to ``"function"``.
|
|
||||||
|
|
||||||
Constructor and fallback function never have ``name`` or ``outputs``. Fallback function doesn't have ``inputs`` either.
|
Constructor and fallback function never have ``name`` or ``outputs``. Fallback function doesn't have ``inputs`` either.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
Loading…
Reference in New Issue
Block a user