From ac67c80576e484034ce696a41ae3b4f1b0eadf3d Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sun, 30 Oct 2016 19:17:31 -0400 Subject: [PATCH] return callbacks --- lib/deploy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/deploy.js b/lib/deploy.js index 2f34bea77..5700f0a15 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); } });