Always get the same wallet address even after switching Metamask accounts #2908
Replies: 2 comments 1 reply
-
The You may need to disconnect an account to change the order, I’m not actually certain how MetaMask handles A given Signer will never change its address though, as Signer is immutable. You need to use |
Beta Was this translation helpful? Give feedback.
-
@ricmoo Thanks for helping out! I think I found the issue. The first time If I choose all the three accounts, then when switching accounts Is there a way to actually enforce showing the popup on the screenshot somehow? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Ethers Version
5.6.1
Search Terms
metamask, connect, address, account
Describe the Problem
I connect to Metamask successfully. However, if I switch accounts and try to connect again, the address I'm getting from
signer.getAddress()
is the account I initially connected with.Code Snippet
Contract ABI
No response
Errors
No response
Environment
Browser (Chrome, Safari, etc)
Environment (Other)
No response
Beta Was this translation helpful? Give feedback.
All reactions