Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max Priority gas price does not work #7486

Closed
2 tasks
robinsdan opened this issue Mar 25, 2024 · 2 comments · Fixed by #7106
Closed
2 tasks

Max Priority gas price does not work #7486

robinsdan opened this issue Mar 25, 2024 · 2 comments · Fixed by #7106
Assignees
Labels
T-bug Type: bug

Comments

@robinsdan
Copy link

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (7545c7a 2024-03-12T03:19:04.521042379Z)

What command(s) is the bug in?

forge script

Operating System

Linux

Describe the bug

I use forge script -v --priority-gas-price 0.05gwei --with-gas-price 20gwei, but the transaction will set the priority gas to 20GWEI.

Gas Fees:
Base: 15.038300915 Gwei |Max: 20 Gwei |Max Priority: 20 Gwei
@robinsdan robinsdan added the T-bug Type: bug label Mar 25, 2024
@mattsse
Copy link
Member

mattsse commented Mar 25, 2024

looks like priority gas price is overwritten by gas price

  --with-gas-price <PRICE>
      Gas price for legacy transactions, or max fee per gas for EIP1559 transactions

@klkvr I think simply changing the order in which those are set should fix this

@klkvr
Copy link
Member

klkvr commented Mar 25, 2024

Will be addressed in scope of #7106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants