Cannot open WalletConnect modal after closing it for the first time

Having a strange issue where as the WalletConnect modal will not open if click on the โ€œXโ€ icon to close the modal when it is opened the fist time. To be a bit more clear, i am able to open the modal one time, but after i close it, it does not open again.

In fact, when i close the modal, it does not even go into catch exception. Any idea how to solve this?

    try {
      user = await Moralis.Web3.authenticate({ provider: "walletconnect" });
    } catch (error) {
      console.log('error', error);
    }

any error prompt you get in the console?

No error in console. I do see the created bridge logged in console. ws:xxxxxxxx

When this happens, the metamask button also stops working. Clicking on either does not workโ€ฆ

Another thing i notice is if i actually proceed with the walletconnect connection, it connects fine. Then after i disconnect the bridge i can then click on walletconnect button again and i do get the QR code, but if i close the modal, it stops working

It all sees to be an issue when closing the walletconnect modal

btw just realized youโ€™re using legacy syntax

Moralis.Web3.authenticate

when it should have been

Moralis.authenticate
1 Like

Tried both. Same issue.

Any other suggestion? I am using latest web3

Hmmm the latest web3? our SDK is using ethers now, can you let me know whatโ€™s the version of the SDK youโ€™re using?

Hey, using these 2 with moralis 1.2.6 npm package

https://cdn.jsdelivr.net/npm/[email protected]/dist/web3.min.js
https://github.com/WalletConnect/walletconnect-monorepo/releases/download/1.7.1/web3-provider.min.js