mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-10 06:14:24 +00:00
take into account errors when determining arguments
This commit is contained in:
parent
b43a766de7
commit
20d7496980
@ -59,9 +59,7 @@ class ContractDeployer {
|
|||||||
} else {
|
} else {
|
||||||
nextEachCb(null, arg);
|
nextEachCb(null, arg);
|
||||||
}
|
}
|
||||||
}, (err, realArgs) => {
|
}, callback);
|
||||||
callback(realArgs);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
checkAndDeployContract(contract, params, callback) {
|
checkAndDeployContract(contract, params, callback) {
|
||||||
@ -75,7 +73,10 @@ class ContractDeployer {
|
|||||||
|
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
function _determineArguments(next) {
|
function _determineArguments(next) {
|
||||||
self.determineArguments(params || contract.args, contract, (realArgs) => {
|
self.determineArguments(params || contract.args, contract, (err, realArgs) => {
|
||||||
|
if (err) {
|
||||||
|
return next(err);
|
||||||
|
}
|
||||||
contract.realArgs = realArgs;
|
contract.realArgs = realArgs;
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
@ -44,7 +44,6 @@ class DeployManager {
|
|||||||
return done();
|
return done();
|
||||||
}
|
}
|
||||||
self.logger.info(__("finished deploying contracts"));
|
self.logger.info(__("finished deploying contracts"));
|
||||||
self.logger.trace(arguments);
|
|
||||||
done(err);
|
done(err);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user