Skip to content

Commit ac67c80

Browse files
committed
return callbacks
1 parent c30a289 commit ac67c80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/deploy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,12 @@ Deploy.prototype.deployContract = function(contract, params, callback) {
136136
}
137137
self.logger.error(errMsg);
138138
contract.error = errMsg;
139-
callback(new Error(err));
139+
return callback(new Error(err));
140140
} else if (transaction.address !== undefined) {
141141
self.logger.info(contract.className + " deployed at " + transaction.address);
142142
contract.deployedAddress = transaction.address;
143143
contract.transactionHash = transaction.transactionHash;
144-
callback(null, transaction.address);
144+
return callback(null, transaction.address);
145145
}
146146
});
147147

0 commit comments

Comments
 (0)