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: remove registered tokens when changing network settings #475

Merged
merged 3 commits into from
May 28, 2024

Conversation

alexruzenhack
Copy link
Contributor

@alexruzenhack alexruzenhack commented Apr 30, 2024

Acceptance Criteria

It depends on:

Security Checklist

  • Make sure you do not include new dependencies in the project unless strictly necessary and do not include dev-dependencies as production ones. More dependencies increase the possibility of one of them being hijacked and affecting us.

@alexruzenhack alexruzenhack changed the base branch from release-candidate to master May 24, 2024 14:03
src/sagas/networkSettings.js Outdated Show resolved Hide resolved
* @async
* @returns {Promise<void>}
*/
async cleanStorage(cleanHistory = false, cleanAddresses = false, cleanTokens = false) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need this method?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, this is needed to also clean the app's AsyncStorage managed by the HybridStore.

@alexruzenhack alexruzenhack merged commit ad96b95 into master May 28, 2024
2 checks passed
@alexruzenhack alexruzenhack deleted the fix/clean-tokens-network-change branch May 28, 2024 00:44
andreabadesso pushed a commit that referenced this pull request Jun 24, 2024
* fix: remove registered tokens when changing network settings
* feat: it extends HibridStore cleanStorage to also clean the cache
* feat: remove cleanStorage and add cleanTokens when calling wallet.stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants