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

fix(wallet): limit WalletConnect backup to Defly and Pera #292

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

drichar
Copy link
Collaborator

@drichar drichar commented Oct 10, 2024

Description

This PR refines the WalletConnect session management fix implemented in PR #275. It addresses an oversight where backups were being created for all wallet types, not just Defly and Pera which use WalletConnect v1.

Details

  • Updated setActive method in DeflyWallet to only backup Pera wallet sessions
  • Updated setActive method in PeraWallet to only backup Defly wallet sessions
  • Ensured WalletConnect sessions are only backed up for relevant wallets (Defly and Pera)

These changes further improve the reliability of wallet switching, ensuring that WalletConnect sessions are managed correctly only for the wallets that require it.

Related Issues

This PR is part of the ongoing fix for issue #274, further refining the solution to the WalletConnect session management problems.

- Update `setActive` method in `DeflyWallet` to only backup Pera
- Update `setActive` method in `PeraWallet` to only backup Defly
- Ensure WalletConnect sessions are only backed up for relevant wallets
@drichar drichar merged commit 61b2827 into main Oct 10, 2024
1 check passed
@drichar drichar deleted the fix/storage-backup-only-defly-pera branch October 10, 2024 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant