Skip to content

Commit 384d1a3

Browse files
committed
docs(ignition): include config option maxFeePerGasLimit
As this is a per-network config option the configuration page had to be restructured to support both global and per-network config.
1 parent 6d2906c commit 384d1a3

File tree

1 file changed

+31
-2
lines changed
  • docs/src/content/ignition/docs/config

1 file changed

+31
-2
lines changed

docs/src/content/ignition/docs/config/index.md

+31-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Configuration
22

3+
Hardhat Ignition has configuration options at both the global and network level.
4+
5+
## Configuration options
6+
37
You can use the `ignition` field in the Hardhat config to customize how Hardhat Ignition behaves:
48

59
```js
@@ -14,8 +18,6 @@ module.exports = {
1418
};
1519
```
1620

17-
## Configuration options
18-
1921
These are the different options you can add to your Hardhat config file.
2022

2123
### `blockPollingInterval`
@@ -41,3 +43,30 @@ Default value: 4.
4143
The number of confirmations Hardhat Ignition waits before considering a transaction as complete. This provides control over block re-org risk.
4244

4345
Default value: 5
46+
47+
## Network configuration options
48+
49+
You can use the `ignition` field under specific network configurations to customize deployments on a per-network basis:
50+
51+
```js
52+
// hardhat.config.js
53+
module.exports = {
54+
networks: {
55+
sepolia: {
56+
// ...
57+
ignition: {
58+
maxFeePerGasLimit: 50_000_000_000n, // 50 gwei
59+
},
60+
// ...
61+
},
62+
},
63+
};
64+
```
65+
66+
These are the different options you can add to the per-network `ignition` config.
67+
68+
### `maxFeePerGasLimit`
69+
70+
If set, places a limit on the maximum fee per gas that Hardhat Ignition will allow when sending transactions. If Hardhat Ignition's calculated max fee per gas is higher than the limit, the deployment will be stopped with an error. This is useful for preventing accidental high fees during busy periods.
71+
72+
Default value: undefined

0 commit comments

Comments
 (0)