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

Cast: running txs on optimism result with Transaction(GasPriceLessThanBaseFee) error #5122

Closed
2 tasks done
soloblack opened this issue Jun 9, 2023 · 6 comments · Fixed by #5226
Closed
2 tasks done
Assignees
Labels
T-bug Type: bug

Comments

@soloblack
Copy link

Component

Cast

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

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (08a629a 2023-06-03T00:14:26.563741000Z)

What command(s) is the bug in?

cast run

Operating System

macOS (Apple Silicon)

Describe the bug

cast run 0xd0f48fb6256e4744386214343691fd0ef9b7f6fc5037d6221e838ac6fabe9659

Executing previous transactions from the block.
Error:
Failed to execute transaction: 0xd0f48fb6256e4744386214343691fd0ef9b7f6fc5037d6221e838ac6fabe9659

Context:

  • backend: failed while inspecting: Transaction(GasPriceLessThanBasefee)
@soloblack soloblack added the T-bug Type: bug label Jun 9, 2023
@gakonst gakonst added this to Foundry Jun 9, 2023
@github-project-automation github-project-automation bot moved this to Todo in Foundry Jun 9, 2023
@Evalir
Copy link
Member

Evalir commented Jun 9, 2023

i have a hunch this might be fixed by #5126

@Evalir Evalir self-assigned this Jun 13, 2023
@Evalir
Copy link
Member

Evalir commented Jun 13, 2023

Not fixed by #5126, will investigate—might be an L2 gas calculation kink.

@Evalir Evalir changed the title cast run error on optimism Cast: running txs on optimism result with Transaction(GasPriceLessThanBaseFee) error Jun 13, 2023
@tynes
Copy link
Contributor

tynes commented Jun 13, 2023

This is probably because of deposit transactions, the first tx in the block is a system tx that updates the L1 context in a special L2 contract. Learn more here. An example tx can be found here.

This could be solved with an optimism config for revm that includes the diff to the state transition function. Deposit txs buy L2 gas on L1. There has been interest in implementing this for op-reth

@LIYANG-UST
Copy link

same on Arbitrum, how to solve it?

@dcposch
Copy link
Contributor

dcposch commented Jun 15, 2023

To reproduce on Base

cast run --rpc-url https://goerli.base.org  0xf674e0989e2721b526eeaa7d7c16b86ecdf362f0ee2ed64d92b08d1fb161bf43

@0xdapper
Copy link
Contributor

Same on arbitrum

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

Successfully merging a pull request may close this issue.

6 participants