-
Notifications
You must be signed in to change notification settings - Fork 267
feat(multiaccount): add back functions to delete a multiaccount #7263
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
base: develop
Are you sure you want to change the base?
Conversation
Jenkins Builds
|
| return errors.New("accounts db wasn't initialized") | ||
| } | ||
|
|
||
| err := b.multiaccountsDB.DeleteAccount(keyUID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jrainville should we check before get to this line if the account being deleted is not the last multiaccount?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In theory there is no harm deleting the last one, it should just go back to the first stage of onboarding without the selector.
The use case is if someone only has one account, forgets their password, but still has the seed phrase, they can delete the profile and reimport
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #7263 +/- ##
===========================================
- Coverage 60.40% 60.40% -0.01%
===========================================
Files 815 815
Lines 113163 113220 +57
===========================================
+ Hits 68360 68393 +33
- Misses 37740 37756 +16
- Partials 7063 7071 +8
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Needed for status-im/status-app#15350
It was deleted as "not used" because desktop didn't have it yet, but we planned to use it. This was the commit: d96dfaa#diff-37b0477fdcc303b15489e4502027610f4a45ee12b564c48b7ccb45439e0c4b74
I only brought back
DeleteMultiaccountV2, but removed the V2 part. I updated the test to work with the new way of managing accounts, which is pleasantly way simpler.