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

refactor(wallet-connect): improve session management and validation #1004

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

ArturHoncharuk
Copy link
Collaborator

  • Updated useConnectionsController to utilize AppState for managing active sessions based on app focus, enhancing session handling.
  • Refactored validateAndFilterSessions to use SessionTypes.Struct for improved type safety and validation logic, ensuring robust session management.

- Updated `useConnectionsController` to utilize `AppState` for managing active sessions based on app focus, enhancing session handling.
- Refactored `validateAndFilterSessions` to use `SessionTypes.Struct` for improved type safety and validation logic, ensuring robust session management.
- Removed the `SessionDeleteEvent` type and streamlined the `onSessionDelete` callback to directly close all modals and update active sessions using `walletKit.getActiveSessions()`, enhancing code clarity and maintainability.
@ArturHoncharuk ArturHoncharuk merged commit 8471749 into dev Jan 24, 2025
1 of 2 checks passed
@ArturHoncharuk ArturHoncharuk deleted the AMB-5309 branch January 24, 2025 12:03
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