mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-12 15:04:29 +00:00
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);
|
||||
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);
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user