diff --git a/lib/web3/contract.js b/lib/web3/contract.js index 2eb65e1..a8cb71c 100644 --- a/lib/web3/contract.js +++ b/lib/web3/contract.js @@ -198,7 +198,7 @@ var ContractFactory = function (eth, abi) { if (options.value > 0) { var constructorAbi = abi.filter(function (json) { return json.type === 'constructor' && json.inputs.length === args.length; - })[0] || {}; + })[0] || {}; if (!constructorAbi.payable) { throw new Error('Cannot send value to non-payable constructor');