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 migration for cleaning account balances #3527

Merged
merged 1 commit into from
Jul 5, 2023
Merged

Conversation

jagodarybacka
Copy link
Contributor

@jagodarybacka jagodarybacka commented Jul 5, 2023

What

Migration should be ready to handle accounts that are in a loading state without throwing and breaking the extension.

image

Latest build: extension-builds-3527 (as of Wed, 05 Jul 2023 09:15:07 GMT).

MIgration should be ready to handle accounts that are in a loading state
without throwing and breaking the extension.
@jagodarybacka jagodarybacka self-assigned this Jul 5, 2023
@jagodarybacka
Copy link
Contributor Author

I think we should be using types from redux slices in the migrations to avoid errors like this that are hard to notice without manually comparing types 🤔

@kkosiorowska kkosiorowska merged commit f57e042 into main Jul 5, 2023
@kkosiorowska kkosiorowska deleted the fix-to-31-migration branch July 5, 2023 09:15
@Shadowfiend
Copy link
Contributor

The problem is the migrations change the types, so to achieve that we'd have to snapshot the types, which is effectively what we're doing here. A little tool that could extract the type from the language server for a given part of the redux store and copy it into the file could make this less error prone however.

Shadowfiend added a commit that referenced this pull request Jul 5, 2023
Hotfix version with fix from
#3527

Latest build:
[extension-builds-3529](https://github.com/tahowallet/extension/suites/14073950651/artifacts/786730313)
(as of Wed, 05 Jul 2023 11:12:40 GMT).
@Shadowfiend Shadowfiend mentioned this pull request Jul 6, 2023
kkosiorowska pushed a commit that referenced this pull request Jul 10, 2023
## Highlights

- An updated Taho token list! This will start auto-updating Soon™.

## What's Changed
* Update Taho token list reference by @kkosiorowska in
#3506
* Don't run e2e tests when workflow is triggered by push of tag by
@michalinacienciala in #3514
* Fix throwing NFT filters panel by @jagodarybacka in
#3513
* Use gas price from 0x quote to setup swap transaction by
@jagodarybacka in #3516
* v0.40.0 by @hyphenized in
#3507
* Add cron job to sync pledge signers by @hyphenized in
#3505
* Fix invalid workflow file by @hyphenized in
#3519
* Remove workflow trigger used for testing by @hyphenized in
#3520
* Fix migration for cleaning account balances by @jagodarybacka in
#3527
* v0.40.1 with op swaps gas price hotfix by @Shadowfiend in
#3518
* v0.40.2 - accounts migration fix by @jagodarybacka in
#3529


**Full Changelog**:
v0.40.2...v0.41.0

Latest build:
[extension-builds-3531](https://github.com/tahowallet/extension/suites/14093546910/artifacts/788185513)
(as of Thu, 06 Jul 2023 02:05:27 GMT).
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.

3 participants