Web3Auth / web3auth-wagmi-connector

Web3Auth connector for wagmi
25 stars 24 forks source link

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

Open raoulpicconi opened 1 year ago

raoulpicconi commented 1 year ago

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:

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