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: clean up old balances when switching account #971

Open
wants to merge 2 commits into
base: next
Choose a base branch
from

Conversation

yeager-eren
Copy link
Collaborator

@yeager-eren yeager-eren commented Dec 17, 2024

Summary

Fix updating balances when switching network in wallet.

We've changed how we store balances in our app, in our new approach we are caching the balances somehow. We need to clean up these cache when switching account for a wallet.

Fixes RF-2051

How did you test this change?

Try to switch account in your wallets, balances should be updated correctly. This is not only related to Hub compatible wallets, legacy wallets have been affected. So please check with some of your installed wallets including Phantom and other wallets you may have.

Checklist:

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • Implemented a user interface (UI) change, referencing our Figma design to ensure pixel-perfect precision.

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.

2 participants