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

chore(fork): adjust chain_id when updating local env with fork #7679

Merged
merged 2 commits into from
Apr 16, 2024

Conversation

trevorgjohnson
Copy link
Contributor

Motivation

Solves #7633

Solution

Adds the following line to update_current_env_with_fork_env():

current.tx.chain_id = fork.tx.chain_id;

Apologies if this breaks or leads to unforeseen behavior as I'm relatively new to fork testing.
I'm always happy to hear how this can be improved!

@trevorgjohnson trevorgjohnson changed the title chore: adjust "chain_id" when updating local env with fork chore(fork): adjust chain_id when updating local env with fork Apr 16, 2024
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

nice find, ty

@mattsse mattsse merged commit f8a9d5e into foundry-rs:master Apr 16, 2024
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.

2 participants