diff --git a/lib/deploy.js b/lib/deploy.js index 2f34bea7..5700f0a1 100644 --- a/lib/deploy.js +++ b/lib/deploy.js @@ -136,12 +136,12 @@ Deploy.prototype.deployContract = function(contract, params, callback) { } self.logger.error(errMsg); contract.error = errMsg; - callback(new Error(err)); + return callback(new Error(err)); } else if (transaction.address !== undefined) { self.logger.info(contract.className + " deployed at " + transaction.address); contract.deployedAddress = transaction.address; contract.transactionHash = transaction.transactionHash; - callback(null, transaction.address); + return callback(null, transaction.address); } });