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: ethers fail to disconnect #2127

Merged
merged 2 commits into from Apr 8, 2024
Merged

fix: ethers fail to disconnect #2127

merged 2 commits into from Apr 8, 2024

Conversation

tomiir
Copy link
Contributor

@tomiir tomiir commented Apr 8, 2024

Breaking Changes

N/A

Changes

  • feat:
  • fix: "Failed to disconnect" error on ethers + relay connections
  • chore:

Description

WC provider does not implement emit which was being fired after disconnection. This caused the client to actually disconnect, but throw an error causing desync in the UI and an error popup.

Tests were not capturing this because the UI kept the modal open and the button in loading state so "account button" was never displayed. Updated it to expect to see the connect button instead

Copy link

vercel bot commented Apr 8, 2024

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

Name Status Preview Comments Updated (UTC)
web3modal-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 8, 2024 2:37pm
web3modal-gallery ✅ Ready (Inspect) Visit Preview Apr 8, 2024 2:37pm
web3modal-laboratory ✅ Ready (Inspect) Visit Preview Apr 8, 2024 2:37pm

Copy link
Contributor

@enesozturk enesozturk left a comment

Choose a reason for hiding this comment

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

LGTM ✅

A short description and source links in the PR description would be helpful 🙏

@tomiir
Copy link
Contributor Author

tomiir commented Apr 8, 2024

Updated description !

@tomiir tomiir merged commit 6bc232f into V4 Apr 8, 2024
13 checks passed
@tomiir tomiir deleted the fix/ethers-fail-to-disconnect branch April 8, 2024 14:45
@tomiir tomiir mentioned this pull request Apr 8, 2024
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.

None yet

3 participants