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 connectivity events correctly #120

Merged
merged 6 commits into from
Dec 7, 2020
Merged

Implement connectivity events correctly #120

merged 6 commits into from
Dec 7, 2020

Conversation

rekmarks
Copy link
Member

@rekmarks rekmarks commented Dec 4, 2020

This PR correctly implements connectivity events per EIP-1193. Previously, connect was only emitted correctly by accident, while disconnect was always correct when emitted, but was only emitted for a subset of cases.

Corresponding extension PR: MetaMask/metamask-extension#10006

Fixes #61, Closes #65

@rekmarks rekmarks requested a review from a team as a code owner December 4, 2020 21:08
@rekmarks rekmarks requested a review from danjm December 4, 2020 21:08
brad-decker
brad-decker previously approved these changes Dec 7, 2020
Copy link

@brad-decker brad-decker left a comment

Choose a reason for hiding this comment

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

LGTM

@rekmarks rekmarks merged commit 8f0c61b into main Dec 7, 2020
@rekmarks rekmarks deleted the connectivity branch December 7, 2020 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provider instance is created even when MetaMask is not installed Correctly represent connectivity
2 participants