return callbacks
This commit is contained in:
parent
c30a289945
commit
ac67c80576
|
@ -136,12 +136,12 @@ Deploy.prototype.deployContract = function(contract, params, callback) {
|
||||||
}
|
}
|
||||||
self.logger.error(errMsg);
|
self.logger.error(errMsg);
|
||||||
contract.error = errMsg;
|
contract.error = errMsg;
|
||||||
callback(new Error(err));
|
return callback(new Error(err));
|
||||||
} else if (transaction.address !== undefined) {
|
} else if (transaction.address !== undefined) {
|
||||||
self.logger.info(contract.className + " deployed at " + transaction.address);
|
self.logger.info(contract.className + " deployed at " + transaction.address);
|
||||||
contract.deployedAddress = transaction.address;
|
contract.deployedAddress = transaction.address;
|
||||||
contract.transactionHash = transaction.transactionHash;
|
contract.transactionHash = transaction.transactionHash;
|
||||||
callback(null, transaction.address);
|
return callback(null, transaction.address);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue