Bug: WalletConnect - No error thrown when user rejects connection from wallet application
See original GitHub issueIs 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
- Select WalletConnect
- Scan QR code in your wallet application
- 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:
- Created a year ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
Having same issue using connectkit and metamask. If I reject the transaction the useContractWrite data resets but
isLoading
remains true.