From b9c0b8f9e5fa99ac512efd5d7b204d9d6a3842fd Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Thu, 9 Jul 2015 07:43:53 -0400 Subject: [PATCH] use correct variable when determing output from cmd --- lib/blockchain.js | 2 +- lib/deploy.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/blockchain.js b/lib/blockchain.js index 45b8eec4..d10805f7 100644 --- a/lib/blockchain.js +++ b/lib/blockchain.js @@ -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]; } } diff --git a/lib/deploy.js b/lib/deploy.js index 9130e44c..a90eb30b 100644 --- a/lib/deploy.js +++ b/lib/deploy.js @@ -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) {