From 793b1890e84d1cf85e5f31b63350011e41ad839c Mon Sep 17 00:00:00 2001 From: Daniel Kirchner Date: Fri, 6 Sep 2019 15:35:01 +0200 Subject: [PATCH] ``type`` field in ABI JSON no longer defaults to ``function`` --- Changelog.md | 1 + docs/abi-spec.rst | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index eaaa0ad31..deaab332d 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,6 +2,7 @@ Breaking changes: * 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``). * 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. diff --git a/docs/abi-spec.rst b/docs/abi-spec.rst index 6f7dc7cfb..1cd751eee 100644 --- a/docs/abi-spec.rst +++ b/docs/abi-spec.rst @@ -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; - ``stateMutability``: a string with one of the following values: ``pure`` (:ref:`specified to not read blockchain state `), ``view`` (:ref:`specified to not modify the blockchain state `), ``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. .. note::