From 11ba67bb34e31a49c6c13670de0ff12ad5277080 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 5 Jan 2018 15:33:53 -0500 Subject: [PATCH] cleanup --- lib/contracts/deploy.js | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/lib/contracts/deploy.js b/lib/contracts/deploy.js index eba345040..2ce8c667d 100644 --- a/lib/contracts/deploy.js +++ b/lib/contracts/deploy.js @@ -206,10 +206,6 @@ class Deploy { let contractObject = new self.web3.eth.Contract(contract.abiDefinition); let deployObject; - //if (contractParams === [] || contractParams === undefined || contractParams.length === 0) { - // console.dir("no params"); - // deployObject = contractObject.deploy({data: "0x" + contractCode}); - //} else { try { deployObject = contractObject.deploy({arguments: contractParams, data: "0x" + contractCode}); } catch(e) { @@ -219,18 +215,6 @@ class Deploy { return callback(new Error(e)); } } - //} - - //// // TODO: probably needs to be defaultAccount - //// // TODO: it wouldn't necessary be the first address - //// // use defined blockchain address or first address - //// contractParams.push({ - //// //from: this.web3.eth.coinbase, - //// from: accounts[0], - //// data: "0x" + contractCode, - //// gas: contract.gas, - //// gasPrice: contract.gasPrice - //// }); self.logger.info("deploying " + contract.className.bold.cyan + " with ".green + contract.gas + " gas".green); @@ -258,10 +242,6 @@ class Deploy { } self.logger.contractsState(self.contractsManager.contractsState()); }); - - //contractObject["new"].apply(contractObject, contractParams); - //contractObject["deploy"].apply(contractObject, contractParams); - //contractObject["deploy"].apply(contractObject, {arguments: contractParams}); }); }