wevm / wagmi

React Hooks for Ethereum

Home Page:https://wagmi.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MetaMask disconnect can be supported now

davisshaver opened this issue · comments

Describe the bug

Previously we had #684 which was closed because MetaMask did not support programmatic disconnect. MetaMask recently added a wallet_revokePermissions RPC method which allows revoking permissions.

See also tracking issue here MetaMask/core#723.

With this change, could WAGMI be updated to "fix" the issue with MetaMask not fully disconnecting when use WAGMI disconnect hooks?

Link to Minimal Reproducible Example

No response

Steps To Reproduce

No response

Wagmi Version

^2.8.1

Viem Version

^2.9.31

TypeScript Version

No response

Check existing issues

Anything else?

Thank you for a fantastic library and please advise if I can help with this issue followup in any way.