This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
Optimism EIP-1559 transaction max_priority_fee_per_gas set way higher than needed #2788
Labels
bug
Something isn't working
Version
ethers = { version = "2.0", features = ["optimism"] }
Platform
amd64 64-bit Ubuntu 22.04.4 LTS
Description
When doing contract method call on Optimism, transaction fields
max_priority_fee_per_gas
andmax_fee_per_gas
are set way higher than needed.Base: 0.06006163 Gwei | Max: 3.120361902 Gwei | Max Priority: 3 Gwei
transaction 1 linkBase: 0.005705273 Gwei |Max: 0.15 Gwei |Max Priority: 0.001 Gwei
transaction 2 linkTransaction 1 is sent by invoking contract method and sending transaction without modification.
Transaction 2 is sent by invoking contract method and sending transaction with
max_priority_fee_per_gas
andmax_fee_per_gas
fields set.Code to reproduce transaction 1
As described in ethers-rs erc-20 transfer example
Code to reproduce transaction 2
The text was updated successfully, but these errors were encountered: