use correct variable when determing output from cmd
This commit is contained in:
parent
3d7c1c629c
commit
b9c0b8f9e5
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue