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

Use remote chain id in fork metadata #5114

Merged
merged 4 commits into from
Apr 15, 2024
Merged

Conversation

fvictorio
Copy link
Member

@fvictorio fvictorio requested review from agostbiro and Wodann April 12, 2024 09:58
Copy link

changeset-bot bot commented Apr 12, 2024

🦋 Changeset detected

Latest commit: 3d7f13e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@nomicfoundation/edr Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Apr 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hardhat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 15, 2024 7:53am

@fvictorio fvictorio had a problem deploying to github-action-benchmark April 12, 2024 09:58 — with GitHub Actions Error
@github-actions github-actions bot added the status:ready This issue is ready to be worked on label Apr 12, 2024
let fixture = ProviderTestFixture::new_forked(None)?;

let fork_metadata = fixture.provider_data.fork_metadata().unwrap();
assert_eq!(fork_metadata.chain_id, 1);
Copy link
Member Author

Choose a reason for hiding this comment

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

Is it ok to assume that we are forking mainnet here? I think it is, but would like to get confirmation.

If it's not ok, is there an example of a test where we are doing this "correctly"?

Copy link
Member

Choose a reason for hiding this comment

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

We assume this everywhere else in the code, so I think it's fine.

Copy link
Member

@Wodann Wodann left a comment

Choose a reason for hiding this comment

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

Missing a changelog

@fvictorio fvictorio temporarily deployed to github-action-benchmark April 12, 2024 10:35 — with GitHub Actions Inactive
@fvictorio fvictorio merged commit b655e30 into main Apr 15, 2024
41 checks passed
@fvictorio fvictorio deleted the edr/366-hardhat-metadata-fork-id branch April 15, 2024 16:07
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area:edr status:ready This issue is ready to be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hardhat_metadata network method returns incorrect fork information
3 participants