Merge pull request #776 from embark-framework/bugfix/gasPrice

Fix Gas Price
This commit is contained in:
Jonathan Rainville 2018-09-04 08:52:42 -04:00 committed by GitHub
commit 8a74694a8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -220,7 +220,10 @@ class ContractDeployer {
}); });
}, },
function getGasPriceForNetwork(next) { 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; contract.gasPrice = contract.gasPrice || gasPrice;
next(); next();
}); });