Skip to content

Conversation

@jrainville
Copy link
Member

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.

@status-im-auto
Copy link
Member

status-im-auto commented Dec 24, 2025

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✖️ 24aec23 #1 2025-12-24 16:17:58 ~1 min tests 📄log
✔️ 24aec23 #1 2025-12-24 16:20:13 ~3 min linux/status-go 📦zip
24aec23 #1 2025-12-24 16:21:00 ~4 min macos/nwaku 📄log
✔️ 24aec23 #1 2025-12-24 16:21:16 ~4 min macos/status-go 📦zip
✔️ 24aec23 #1 2025-12-24 16:21:20 ~4 min windows/status-go 📦zip
24aec23 #1 2025-12-24 16:21:51 ~5 min windows/nwaku 📄log
✔️ 24aec23 #1 2025-12-24 16:24:22 ~8 min linux/nwaku 📦zip
✔️ 24aec23 #1 2025-12-24 16:33:29 ~16 min tests-rpc 📄log
✔️ 24aec23 #1 2025-12-24 16:34:11 ~17 min tests-rpc 📄log
✔️ 24aec23 #1 2025-12-24 16:51:44 ~35 min tests 📄log

return errors.New("accounts db wasn't initialized")
}

err := b.multiaccountsDB.DeleteAccount(keyUID)
Copy link
Contributor

@saledjenic saledjenic Dec 24, 2025

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?

Copy link
Member Author

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
Copy link

codecov bot commented Dec 24, 2025

Codecov Report

❌ Patch coverage is 42.10526% with 33 lines in your changes missing coverage. Please review.
✅ Project coverage is 60.40%. Comparing base (5398cd4) to head (24aec23).

Files with missing lines Patch % Lines
pkg/backend/geth_backend.go 55.81% 13 Missing and 6 partials ⚠️
mobile/status.go 0.00% 14 Missing ⚠️
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     
Flag Coverage Δ
functional 39.67% <0.00%> (+0.04%) ⬆️
unit 54.78% <42.10%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
protocol/requests/delete_multiaccount.go 0.00% <ø> (ø)
mobile/status.go 22.34% <0.00%> (-0.26%) ⬇️
pkg/backend/geth_backend.go 51.33% <55.81%> (+0.10%) ⬆️

... and 30 files with indirect coverage changes

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