question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: WalletConnect - No error thrown when user rejects connection from wallet application

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Package Version

0.6.5

Current Behavior

If a user is connecting to WalletConnect, scans the QR code, and then rejects the request from their wallet application, the isLoading variable is not updated to false. I have tested this in this connect wallet demo and confirmed the behavior. If I reject the connection from my wallet application (I am using Zerion) the QR code will close out on the screen but the loading symbol next to the WalletConnect button remains.

If I exit out of the QR code directly on the website it works as expected.

Expected Behavior

If you reject the connection from your wallet application, it should throw a rejected connection error and update the isLoading boolean.

Steps To Reproduce

  1. Select WalletConnect
  2. Scan QR code in your wallet application
  3. Reject the connection from your wallet application

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

https://wagmi.sh/examples/connect-wallet

Anything else?

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tmmcommented, Oct 16, 2022

Same there isn’t an event to hook into for this nor does it throw an error we can bubble up through wagmi.

Going to close for now and follow up with the WalletConnect team.

0reactions
montanaflynncommented, Dec 7, 2022

Having same issue using connectkit and metamask. If I reject the transaction the useContractWrite data resets but isLoading remains true.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Missing or invalid topic field · Issue #315 - GitHub
We are seeing a lot of errors coming from the wallet connect socket transport all the below: Error: Missing or invalid topic field....
Read more >
WalletConnect Example | PlatON - GitHub Pages
WalletConnect is an open protocol to communicate securely between Dapps and Wallets. ... The user will then approve or reject the connection.
Read more >
[bug] WalletConnect Transaction promises not returning - Gitcoin
I am using the package in my next.js application. When I send transactions to a wallet connected with WalletConnect, the transaction promise never...
Read more >
WalletConnect How to Connect your Dapp with ... - YouTube
Join Pedro Gomes of WalletConnect for a workshop titled "How to Connect your Dapp with WalletConnect." Improve your dapp by integrating ...
Read more >
WalletConnect - Bountysource
I want to fully disconnect and use the app as a guest/unknown user ... We are seeing a lot of errors coming from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found