Koniverse / SubWallet-Extension

SubWallet is the comprehensive non-custodial wallet solution for Polkadot, Substrate & Ethereum ecosystems.
https://www.subwallet.app
Apache License 2.0
93 stars 66 forks source link

SubWallet wants to connect if using MetaMask #3180

Open kacperkurek opened 3 months ago

kacperkurek commented 3 months ago

Describe the bug SubWallet actions are calling when MetaMask is connected. Also SubWallet tries to auto-connect when visit site again but it was logged in with metamask last

Link to Minimal Reproducible Example https://github.com/kacperkurek/test-wagmi

Steps To Reproduce Login with SubWallet and disconnect. Login with MetaMask

It is not related with wagmi based on response from wagmi team -> https://github.com/wevm/wagmi/issues/4018

Thiendekaco commented 3 months ago

Hi @kacperkurek , we thank you for bringing this issue to our attention. Our investigation revealed that the issue is due to the Subwallet provider not yet supporting the method used by web3Modal to disconnect. Therefore, when web3Modal/wagmi disconnects, our wallet does not receive the information that the dapp has disconnected. We will monitor and update these methods in the near future.