diff --git a/remix-lib/src/execution/txHelper.js b/remix-lib/src/execution/txHelper.js index 1f1b88641..ca51f19c9 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,8 @@ 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 + funABI.stateMutability = abi[i].stateMutability break } }