mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-20 17:38:28 +00:00
Merge pull request #776 from embark-framework/bugfix/gasPrice
Fix Gas Price
This commit is contained in:
commit
8a74694a8b
@ -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();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user