Fix Gas Price

This commit is contained in:
Anthony Laibe 2018-09-03 09:48:44 +01:00
parent c42bbd169c
commit 5ad17be140
1 changed files with 4 additions and 1 deletions

View File

@ -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();
});