I’m getting the following error when disconnecting from WalletConnect client after authenticating using moralis (1.1.2), react-moralis (1.1.0), and @walletconnect/web3-provider (1.7.1)
How I’m authenticating…
() => authenticate({ provider: "walletconnect" })
Error I’m seeing…
Uncaught (in promise) Error: Missing or invalid topic field
at SocketTransport.send (index.ts:107)
at WalletConnect._sendRequest (index.ts:799)
at async WalletConnect.killSession (index.ts:609)
at async WalletConnectProvider.close (index.ts:143)
I didn’t have this problem when using @walletconnect/client and @walletconnect/qrcode-modal where I would just listen for the ‘disconnect’ event to log them out properly. I searched around, but I don’t seem to have access to such event listeners. Has anyone experienced this issue and if so, how can I fix it?