From 5ad17be14008a615e0858e1c48858fec2fb1b98d Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Mon, 3 Sep 2018 09:48:44 +0100 Subject: [PATCH] Fix Gas Price --- lib/modules/deployment/contract_deployer.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); });