defi-stake-yield-brownie-freecode icon indicating copy to clipboard operation
defi-stake-yield-brownie-freecode copied to clipboard

useEthers doesn't deactivate account

Open grisvladko opened this issue 4 years ago • 2 comments

Hello, i am working on the simple example of connect & disconnect to a wallet, i am encountering a problem as so: clicking connect is working, but when i click disconnect the wallet doesn't disconnect fully, and when i reload the page it shows it is connected again. i check this on the metamask GUI and when you hit disconnect you still see on the left top side of the GUI that it is connected, and only if you hit it mannualy and disconnect it, then it works. can you provide some insight on why is this happening? why is the deactivate function does not disconnect my wallet ? Thank you!

grisvladko avatar Nov 26 '21 08:11 grisvladko

Yep, this is an issue with the implementation... sorry. I'll leave this issue open!

PatrickAlphaC avatar Nov 29 '21 17:11 PatrickAlphaC

Thank you, as i've seen when using web3 their function also does not deactivate the wallet fully, though you don't see you are connected on refresh but you can still see that green light and written connected in the metamask GUI, so i suppose it may be a more general problem.

grisvladko avatar Nov 30 '21 06:11 grisvladko