From 30807f06c51310626f2116b853c6a2518a315ede Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Fri, 9 Aug 2019 13:37:35 +0200 Subject: [PATCH 1/2] added payable to the function ABI --- remix-lib/src/execution/txHelper.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/remix-lib/src/execution/txHelper.js b/remix-lib/src/execution/txHelper.js index 1f1b886414..f67f0b65c0 100644 --- a/remix-lib/src/execution/txHelper.js +++ b/remix-lib/src/execution/txHelper.js @@ -56,7 +56,7 @@ module.exports = { }, getConstructorInterface: function (abi) { - var funABI = { 'name': '', 'inputs': [], 'type': 'constructor', 'outputs': [] } + var funABI = { 'name': '', 'inputs': [], 'type': 'constructor', 'payable': 'false', 'outputs': [] } if (typeof abi === 'string') { try { abi = JSON.parse(abi) @@ -69,6 +69,7 @@ module.exports = { for (var i = 0; i < abi.length; i++) { if (abi[i].type === 'constructor') { funABI.inputs = abi[i].inputs || [] + funABI.payable = abi[i].payable break } } From 4360c01e96d3c431630463d0e1f5060185841fe0 Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Tue, 13 Aug 2019 12:33:41 +0200 Subject: [PATCH 2/2] added stateMutability to copy --- remix-lib/src/execution/txHelper.js | 1 + 1 file changed, 1 insertion(+) diff --git a/remix-lib/src/execution/txHelper.js b/remix-lib/src/execution/txHelper.js index f67f0b65c0..ca51f19c9c 100644 --- a/remix-lib/src/execution/txHelper.js +++ b/remix-lib/src/execution/txHelper.js @@ -70,6 +70,7 @@ module.exports = { if (abi[i].type === 'constructor') { funABI.inputs = abi[i].inputs || [] funABI.payable = abi[i].payable + funABI.stateMutability = abi[i].stateMutability break } }