I am injecting some javascript into a page from a chrome extension. In my injected code, I am getting a list of accounts from metamask with:
ethereum.request({ method: 'eth_requestAccounts' })
The first time I ran this, it prompted me to connect through Metamask as expected. Now I am not able to disconnect or change my account though. I have disconnected through metamask, but when I run this request again, the account is still listed even though it’s disconnected. How can I force it to clear this disconnected account? It is still there even after reloading the extension I’m working on.
Everything works as expected when I debug from the console, so I’m not sure what’s going on. It seems like something funny due to the extension/injection.