use correct variable when determing output from cmd

This commit is contained in:
Iuri Matias 2015-07-09 07:43:53 -04:00
parent 3d7c1c629c
commit b9c0b8f9e5
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ Blockchain.prototype.get_address = function() {
} else {
console.log("running: " + this.init_command());
result = exec(this.init_command());
address = output.output.match(/{(\w+)}/)[1];
address = result.output.match(/{(\w+)}/)[1];
}
}

View File

@ -90,7 +90,7 @@ Deploy.prototype.generate_abi_file = function() {
var abi = JSON.stringify(contract.compiled.info.abiDefinition);
var transactionHash = deployedContract;
//var contractAddress = deployedContract;
console.log('trying to obtain ' + className + ' address...');
var receipt = null;
while ((receipt = web3.eth.getTransactionReceipt(transactionHash)) === null) {