How to change baseFeePerGas in testing #5265
-
I am testing a smart contract on a local development chain. The smart contract runs normally with ganache CLI 6.12.2 (ganache-core: 2.13.2). After updating ganache to the latest version (7.3.2), with
May I know if there is a way to set |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
@MicaiahReid Hi, I opened this discussion question here. Thank you for your reply in this issue! |
Beta Was this translation helpful? Give feedback.
-
@RippleLeaf We don't currently have a way to set the In terms of workarounds, you have a few options:
|
Beta Was this translation helpful? Give feedback.
@RippleLeaf We don't currently have a way to set the
baseFeePerGas
, but we do have an issue for it, so you can expect to see this feature in the near(ish) future.In terms of workarounds, you have a few options:
gasPrice
on your transactions. However, I obviously don't know the details of what you're working on, so this may not be feasible or helpful.--chain.hardfork berlin
option. This will use berlin hardfork rules for the chain, which was before blocks had abaseFeePerGas
.evm_mine
to lower thebaseFeePerGas
of blocks. Every time a block is mined, thebaseFeePerGas
is either lowered or raised based off of how full the…