diff --git a/lib/modules/deployment/contract_deployer.js b/lib/modules/deployment/contract_deployer.js index 3e352a35f..d46d10a7a 100644 --- a/lib/modules/deployment/contract_deployer.js +++ b/lib/modules/deployment/contract_deployer.js @@ -220,7 +220,10 @@ class ContractDeployer { }); }, function getGasPriceForNetwork(next) { - self.events.request("blockchain:gasPrice", (gasPrice) => { + self.events.request("blockchain:gasPrice", (err, gasPrice) => { + if (err) { + return next(new Error(__("could not get the gas price"))); + } contract.gasPrice = contract.gasPrice || gasPrice; next(); });