From d344b4b8cf8df1c67f09e069a267b5240e80d420 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 5 Dec 2016 12:13:37 +0000 Subject: [PATCH] udapp: if there is no constructor defined, we consider a non-payable constructor by default --- src/universal-dapp.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/universal-dapp.js b/src/universal-dapp.js index 0acf15e386..61ba877bef 100644 --- a/src/universal-dapp.js +++ b/src/universal-dapp.js @@ -380,6 +380,8 @@ UniversalDApp.prototype.getConstructorInterface = function (abi) { return abi[i] } } + + return { 'type': 'constructor', 'payable': false, 'inputs': [] } } UniversalDApp.prototype.getFallbackInterface = function (abi) {