Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] WalletConnect Connection for Solana Does Not Recover on Page Refresh #3843

Open
OptimisticQuan opened this issue Feb 11, 2025 · 1 comment
Labels
bug Something isn't working needs review

Comments

@OptimisticQuan
Copy link

Link to minimal reproducible example

https://appkit-lab.reown.com/library/solana/

Summary

Description

When refreshing the page while using Solana through WalletConnect, the connection fails to restore automatically

Steps to Reproduce

  1. open https://appkit-lab.reown.com/library/solana/
  2. Connect using Solana via WalletConnect
  3. Click ' Sign and Send Transaction ', It works.
  4. Refresh the page
  5. Click ' Sign and Send Transaction ', It shows ' no connection set '

Screen Recording:

LostSolanaConnection.mp4

Possible Cause

In appkit/packages/appkit/src/client.ts, the syncWalletConnectAccount method currently only handles connection restoration for wagmi adapters:

  if ((adapter as ChainAdapter)?.adapterType === 'wagmi') {
    // Wagmi restoration logic
  }

List of related npm package versions

"@reown/appkit": "1.6.4",
"@reown/appkit-adapter-solana": "1.6.4",

Node.js Version

v22.9.0

Package Manager

[email protected]

@OptimisticQuan OptimisticQuan added bug Something isn't working needs review labels Feb 11, 2025
Copy link

linear bot commented Feb 11, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs review
Projects
None yet
Development

No branches or pull requests

1 participant