wighawag / hardhat-deploy

hardhat deployment plugin
MIT License
1.18k stars 286 forks source link

Increase Max Priority Fee On Tx Replacement #380

Open passabilities opened 1 year ago

passabilities commented 1 year ago

When increasing the gas price on a transaction, the maxPriorityFeePerGas must be increased in order to be accepted into the mempool. Otherwise, an error is thrown regardless if the gasPrice value was also increased.

Reference: https://docs.ethers.io/v5/troubleshooting/errors/#help-REPLACEMENT_UNDERPRICED