From ede937999c5273aa6a11732991ef7cefdf70f21d Mon Sep 17 00:00:00 2001 From: chriseth Date: Mon, 8 Oct 2018 22:47:29 +0200 Subject: Add entry into the breaking changes list. --- docs/050-breaking-changes.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/050-breaking-changes.rst b/docs/050-breaking-changes.rst index 9094000e..93f099ca 100644 --- a/docs/050-breaking-changes.rst +++ b/docs/050-breaking-changes.rst @@ -154,6 +154,10 @@ Command Line and JSON Interfaces * The JSON AST fields ``constant`` and ``payable`` were removed. The information is now present in the ``stateMutability`` field. +* The JSON AST field ``isConstructor`` of the ``FunctionDefinition`` + node was replaced by a field called ``kind`` which can have the + value ``"constructor"``, ``"fallback"`` or ``"function"``. + Constructors ------------ -- cgit From 2fcbe74db00d12dce7133e39fd92b9d0a3b33ef4 Mon Sep 17 00:00:00 2001 From: chriseth Date: Mon, 8 Oct 2018 23:07:10 +0200 Subject: Fix ast json test for function kind. --- test/libsolidity/ASTJSON/address_payable.json | 2 +- test/libsolidity/ASTJSON/address_payable_legacy.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/libsolidity/ASTJSON/address_payable.json b/test/libsolidity/ASTJSON/address_payable.json index 42ad33e5..0f30e8e8 100644 --- a/test/libsolidity/ASTJSON/address_payable.json +++ b/test/libsolidity/ASTJSON/address_payable.json @@ -463,7 +463,7 @@ "documentation" : null, "id" : 36, "implemented" : true, - "isConstructor" : false, + "kind" : "function", "modifiers" : [], "name" : "f", "nodeType" : "FunctionDefinition", diff --git a/test/libsolidity/ASTJSON/address_payable_legacy.json b/test/libsolidity/ASTJSON/address_payable_legacy.json index 11a634c3..dd8a5582 100644 --- a/test/libsolidity/ASTJSON/address_payable_legacy.json +++ b/test/libsolidity/ASTJSON/address_payable_legacy.json @@ -93,6 +93,7 @@ "documentation" : null, "implemented" : true, "isConstructor" : false, + "kind" : "function", "modifiers" : [ null -- cgit