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:
gasPriceon 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 berlinoption. This will use berlin hardfork rules for the chain, which was before blocks had abaseFeePerGas.evm_mineto lower thebaseFeePerGasof blocks. Every time a block is mined, thebaseFeePerGasis either lowered or raised based off of how full the…