return callbacks

This commit is contained in:
Iuri Matias 2016-10-30 19:17:31 -04:00
parent c30a289945
commit ac67c80576
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
});