take into account errors when determining arguments

This commit is contained in:
Iuri Matias 2018-05-31 10:02:57 -04:00
parent b43a766de7
commit 20d7496980
2 changed files with 5 additions and 5 deletions

View File

@ -59,9 +59,7 @@ class ContractDeployer {
} else {
nextEachCb(null, arg);
}
}, (err, realArgs) => {
callback(realArgs);
});
}, callback);
}
checkAndDeployContract(contract, params, callback) {
@ -75,7 +73,10 @@ class ContractDeployer {
async.waterfall([
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;
next();
});

View File

@ -44,7 +44,6 @@ class DeployManager {
return done();
}
self.logger.info(__("finished deploying contracts"));
self.logger.trace(arguments);
done(err);
}
);