mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-02 10:25:21 +00:00
handle error on contract deplyoment
This commit is contained in:
parent
ac67c80576
commit
e44bd3a22e
@ -79,6 +79,9 @@ Deploy.prototype.checkAndDeployContract = function(contract, params, callback) {
|
||||
}
|
||||
|
||||
this.deployContract(contract, realArgs, function(err, address) {
|
||||
if (err) {
|
||||
return callback(new Error(err));
|
||||
}
|
||||
self.deployTracker.trackContract(contract.className, contract.code, realArgs, address);
|
||||
self.deployTracker.save();
|
||||
self.logger.contractsState(self.contractsManager.contractsState());
|
||||
|
Loading…
x
Reference in New Issue
Block a user