Commit d32d9155 authored by Georgios Konstantopoulos's avatar Georgios Konstantopoulos Committed by GitHub

fix(hh-ovm): defaults to 0 gasPrice if none provided (#734)

* fix(hh-ovm): defaults to 0 gasPrice if none provided

* chore: add changeset
parent 56226606
---
'@eth-optimism/hardhat-ovm': patch
---
default to 0 gasPrice if none provided in the network config
......@@ -222,8 +222,11 @@ extendEnvironment(async (hre) => {
(hre as any).ethers.provider.url
)
provider.pollingInterval = interval
// the gas price is overriden to the user provided gasPrice or to 0.
provider.getGasPrice = async () =>
ethers.BigNumber.from(hre.network.config.gasPrice)
ethers.BigNumber.from(hre.network.config.gasPrice || 0)
;(hre as any).ethers.provider = provider
// if the node is up, override the getSigners method's signers
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment