diff --git a/lib/contracts/contract_deployer.js b/lib/contracts/contract_deployer.js index 921f9f2a5..234769540 100644 --- a/lib/contracts/contract_deployer.js +++ b/lib/contracts/contract_deployer.js @@ -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(); }); diff --git a/lib/contracts/deploy_manager.js b/lib/contracts/deploy_manager.js index 815847d37..ff87adf4a 100644 --- a/lib/contracts/deploy_manager.js +++ b/lib/contracts/deploy_manager.js @@ -44,7 +44,6 @@ class DeployManager { return done(); } self.logger.info(__("finished deploying contracts")); - self.logger.trace(arguments); done(err); } );