在网上找的这种方式,但是这应该不是v3的
const connection = await web3Modal.connect() const provider = new ethers.providers.Web3Provider(connection) // Subscribe to accounts change connection.on("accountsChanged", (accounts) => { console.log('ACCOUNTS CHANGED' + accounts[0]); });
v3版的是怎么实现的