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 provider events when init is called #5731

Merged
merged 4 commits into from
Sep 13, 2024

Conversation

fvictorio
Copy link
Member

Provider events are not working when provider.init is called explicitly, instead of the provider being implicitly initialized with the first request. The problem was that the events were only forwarded in the _getOrInitProvider function instead of that being done in init. This PR fixes this and adds a test for that scenario.

@fvictorio fvictorio requested a review from a team September 9, 2024 11:38
Copy link

vercel bot commented Sep 9, 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 Sep 10, 2024 8:40am

Copy link

changeset-bot bot commented Sep 9, 2024

🦋 Changeset detected

Latest commit: dfb232e

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

This PR includes changesets to release 1 package
Name Type
hardhat 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

@github-actions github-actions bot added the status:ready This issue is ready to be worked on label Sep 9, 2024
Copy link
Member

@schaable schaable left a comment

Choose a reason for hiding this comment

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

Looks good! Just a small comment but feel free to ignore if you think it's not important.

@alcuadrado
Copy link
Member

Great catch!

@alcuadrado alcuadrado merged commit 8c564b4 into main Sep 13, 2024
105 checks passed
@alcuadrado alcuadrado deleted the fix-event-forwarding-explicit-init branch September 13, 2024 22:48
@schaable
Copy link
Member

Released in Hardhat v2.22.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready This issue is ready to be worked on
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants