cleanup
This commit is contained in:
parent
a0fca8950d
commit
11ba67bb34
|
@ -206,10 +206,6 @@ class Deploy {
|
||||||
let contractObject = new self.web3.eth.Contract(contract.abiDefinition);
|
let contractObject = new self.web3.eth.Contract(contract.abiDefinition);
|
||||||
let deployObject;
|
let deployObject;
|
||||||
|
|
||||||
//if (contractParams === [] || contractParams === undefined || contractParams.length === 0) {
|
|
||||||
// console.dir("no params");
|
|
||||||
// deployObject = contractObject.deploy({data: "0x" + contractCode});
|
|
||||||
//} else {
|
|
||||||
try {
|
try {
|
||||||
deployObject = contractObject.deploy({arguments: contractParams, data: "0x" + contractCode});
|
deployObject = contractObject.deploy({arguments: contractParams, data: "0x" + contractCode});
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
@ -219,18 +215,6 @@ class Deploy {
|
||||||
return callback(new Error(e));
|
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);
|
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());
|
self.logger.contractsState(self.contractsManager.contractsState());
|
||||||
});
|
});
|
||||||
|
|
||||||
//contractObject["new"].apply(contractObject, contractParams);
|
|
||||||
//contractObject["deploy"].apply(contractObject, contractParams);
|
|
||||||
//contractObject["deploy"].apply(contractObject, {arguments: contractParams});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue