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

fix: set OP enveloped tx field #7649

Merged
merged 4 commits into from
Apr 15, 2024

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Apr 12, 2024

should close #7648

Copy link
Member

@klkvr klkvr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested locally and it seems that we also occur those errors in eth_call and probably eth_estimateGas. not sure how to handle this as we can't obtain enveloped tx from a tx request

@@ -208,6 +208,12 @@ impl<'a, DB: Db + ?Sized, Validator: TransactionValidator> TransactionExecutor<'
}

fn env_for(&self, tx: &PendingTransaction) -> EnvWithHandlerCfg {
let mut tx_env = tx.to_revm_tx_env();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are still passing tx.to_revm_tx_env() into new_with_cfg_env instead of tx_env var

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gotcha, mind taking over this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep sure

@klkvr
Copy link
Member

klkvr commented Apr 14, 2024

@mattsse repro from #7648 passes now

@klkvr klkvr force-pushed the matt/provided-enveloped-tx-data branch from e0a1015 to 114fce4 Compare April 14, 2024 21:54
@mattsse mattsse merged commit 43587e2 into foundry-rs:master Apr 15, 2024
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

anvil crashes with thread 'tokio-runtime-worker' panic
3 participants