wslyvh / nexth

A Next.js + Ethereum starter kit with Viem, Wagmi, Web3Modal, SIWE, Tailwind, daisyUI and more to quickly ship production-ready Web3 Apps ⚡
https://nexth.vercel.app/
MIT License
671 stars 141 forks source link

Fix: Upgrade Wagmi to v0.12.12 to fix MetaMask disconnection issue on network change #11

Closed marthendalnunes closed 1 year ago

marthendalnunes commented 1 year ago

This PR solves #2 by upgrading Wagmi to version 0.12.12, which resolves the MetaMask disconnection issue when switching between networks (e.g., Ethereum, Polygon, Mumbai, Arbitrum, BSC). This problem has been a known issue in MetaMask, and the Wagmi update offers a solution until MetaMask officially addresses the issue. More information can be found in this related issue: https://github.com/wagmi-dev/wagmi/issues/1941

You can test the fix on this deploy

vercel[bot] commented 1 year ago

@marthendalnunes is attempting to deploy a commit to the useWeb3 Team on Vercel.

A member of the Team first needs to authorize it.

marthendalnunes commented 1 year ago

@wslyvh I've tested it several times with the update and the error seems to be fixed, but always good to have extra testing to ensure it's working as expected now :D

wslyvh commented 1 year ago

Awesome! Another great PR..

Thanks Vitor! Much appreciated. Glad you kept track of it :)