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: WalletConnect v1 Switch Accounts and bump V2 package support #1644

Merged
merged 3 commits into from
Apr 18, 2023

Conversation

Adamj1232
Copy link
Member

@Adamj1232 Adamj1232 commented Apr 14, 2023

Description

Closes #1640

The was previously a bug in handling switching of accounts along with a bug within walletConnect that didn't return a standard address case(causing inconsistencies of accounts listed per WalletConnect wallet account).

To test checkout changes and connect MetaMask to WalletConnect V1, then switch accounts back and forth. This should switch seamlessly and the UI/AccountCenter now updates as expected as does the wallets array returned from the demo.

The addresses also match the address if you are to connect MetaMask directly so the address exposed through WalletConnect (bridging MetaMask) and MetaMask directly will match cases.

Checklist

  • Increment the version field in package.json of the package you have made changes in following semantic versioning and using alpha release tagging
  • Check the box that allows repo maintainers to update this PR
  • Test locally to make sure this feature/fix works
  • Run yarn check-all to confirm there are not any associated errors
  • Confirm this PR passes Circle CI checks
  • Add or update relevant information in the documentation

@vercel
Copy link

vercel bot commented Apr 14, 2023

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

Name Status Preview Comments Updated (UTC)
web3-onboard-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 18, 2023 3:33pm

Copy link
Contributor

@leightkt leightkt 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- was able to successfully test on demo

@Adamj1232 Adamj1232 merged commit 804a0e8 into develop Apr 18, 2023
@Adamj1232 Adamj1232 deleted the fix/wc_v2_bump_v1_switchAccounts branch April 18, 2023 15:42
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.

[Bug]: Changing accounts in wallet connect changes account then instantly changes back
2 participants