Skip to content

fix: restore snap and imported srps when changing password #15237

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

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

montelaidev
Copy link
Contributor

@montelaidev montelaidev commented May 8, 2025

Description

This PR adds the restoration of first party snap accounts and imported srps when changing password.

Changes:

  1. added restoreImportedSrp restoreSnapAccounts to Vault.js and updated the change password logic to use these.
  2. Added new tests to Vault
  3. Fix deadlock that could happen when awaiting a promise in MultichainSnapClient.

Related issues

Fixes: #15233
Resolves: https://consensyssoftware.atlassian.net/browse/MMMULTISRP-208?atlOrigin=eyJpIjoiMmM0MDMzNDRlYzdlNDJmZTg3ODNhMzUzNzlkOWZmZDIiLCJwIjoiaiJ9

Manual testing steps

  1. Using a fresh wallet.
  2. Create a new solana account
  3. Import a private key
  4. Import a qr hardware wallet
  5. import a ledger wallet
  6. Go to settings --> security
  7. Go through change password
  8. Login to the wallet and see that accounts are still there.

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Copy link
Contributor

github-actions bot commented May 8, 2025

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@montelaidev montelaidev added the Run Smoke E2E Requires smoke E2E testing label May 9, 2025
@montelaidev montelaidev marked this pull request as ready for review May 9, 2025 09:33
Copy link
Contributor

github-actions bot commented May 9, 2025

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 7a14c1b
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/402ab50f-d62e-48e4-bed7-6afeb9ee42ed

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@montelaidev montelaidev added Run Smoke E2E Requires smoke E2E testing and removed Run Smoke E2E Requires smoke E2E testing labels May 9, 2025
Copy link
Contributor

github-actions bot commented May 9, 2025

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 9926d8b
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/7a7e9c4f-75b0-414e-992f-5e1e0fcd276f

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@Andepande Andepande added the QA Passed QA testing has been completed and passed label May 9, 2025
Copy link

sonarqubecloud bot commented May 9, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QA Passed QA testing has been completed and passed Run Smoke E2E Requires smoke E2E testing team-accounts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Resetting password in the Settings section resets the vault
4 participants