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

Implement support for hardhat_metadata #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hwrdtm
Copy link

@hwrdtm hwrdtm commented Oct 12, 2023

This is so that, running hardhat against anvil will make hardhat think it is running atop a hardhat network, and use a faster polling interval - 50ms vs. 500ms!

This is where the hardhat checks whether it is running atop a hardhat network or not. https://github.com/NomicFoundation/hardhat/blob/b2a551f7354c6937200556c431f69acef6493d9c/packages/hardhat-ethers/src/internal/hardhat-ethers-provider.ts#L808

This is so that, running hardhat against anvil will make hardhat think it is running atop a hardhat network, and use a faster polling interval - 50ms vs. 500ms!
@hwrdtm hwrdtm requested a review from glitch003 October 12, 2023 22:14
@hwrdtm hwrdtm self-assigned this Oct 12, 2023
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.

1 participant