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

useAccount Hook Doesn't Update Wallet Address When Switching Metamask Accounts #106

Open
raoulpicconi opened this issue Aug 30, 2023 · 0 comments

Comments

@raoulpicconi
Copy link

Description:

Steps to Reproduce:

  1. Implement wagmi and web3auth-wagmi-connector in the project.
  2. Sign in using Metamask.
  3. Switch the Metamask account.

Expected Behavior:

The useAccount hook should update the wallet address in the application to reflect the switched account in Metamask.

Current Behavior:

The useAccount hook doesn't update, keeping the initial Metamask account address.

Environment:

  • wagmi version: 1.3.10
  • @web3auth/web3auth-wagmi-connector version: 4.0.1
  • Browser: Chrome 116.0.5845.140
  • Metamask version: 10.34.5

This issue impacts the ability to manage multiple accounts within the application. Would appreciate any assistance or suggestions. Thank you.

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

No branches or pull requests

1 participant