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

chore: Update accounts-controller @v19.0.0 and keyring-controller @v18.0.0 #12339

Merged
merged 5 commits into from
Nov 27, 2024

Conversation

owencraston
Copy link
Contributor

@owencraston owencraston commented Nov 19, 2024

Description

This PR updates the accounts controller to the latest version of 19. This updates requires a peer dependancy bump of the keyring controller to version 18.0.0

  • See accounts controller changelog.
  • See keyring controller changelog.
    • version 18 of the keyring controller removes the addNewAccountWithoutUpdate which is used once in the mobile repo. In order to merge this PR we will need to wait for @mikesposito's PR to merge. This PR removes the need for addNewAccountWithoutUpdate and improves performance/reliability.

Related issues

Fixes: #12302
Fixes: #12304

Unblocked by: #11409

Manual testing steps

Account creation

  1. open app
  2. press create wallet
  3. go through the onboarding flow
  4. once onboarding is complete, you should be on the wallet view and see a single account
  5. open the account selector list and add a new account'
  6. this should work without issues
  7. change the name of your new account
  8. force close the app and reopen, the previously selected account should be the same and the custom name should be preserved.

Account importing

  1. assuming you have created a wallet wth the above steps....
  2. open the account selector list and click add account or hardware wallet and then click import account
  3. paste a private key in this text field and then import
  4. the account should be imported, selected and have the label "imported"
  5. force closing the app and re opening it should preserve the same state of accounts

Hardware wallets

  1. assuming you have created a wallet wth the above steps....
  2. open the account selector list and click add account or hardware wallet and then click Add hardware wallet
  3. select your hardware wallet of choice (ledger or qr based)
  4. follow the instructions to add a hardware wallet
  5. the steps should work and you should have successfully added a hardware account
  6. the hardware account should have the correct labels (either Qr hardware or ledger)
  7. force closing the app and reopening should preserve the same accounts state.

Screenshots/Recordings

Before

After

Screen.Recording.2024-11-27.at.12.41.48.PM.mov

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

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.

@owencraston owencraston force-pushed the chore/accounts-controller-bump branch from f347b89 to 24bfc6c Compare November 19, 2024 21:53
@owencraston owencraston added the Run Smoke E2E Triggers smoke e2e on Bitrise label Nov 19, 2024
Copy link
Contributor

github-actions bot commented Nov 19, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 24bfc6c
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/f8893ed8-ce7f-4e18-9e35-560f827dc7c3

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

@tommasini tommasini mentioned this pull request Nov 25, 2024
7 tasks
@owencraston owencraston force-pushed the chore/accounts-controller-bump branch from 24bfc6c to d035bcb Compare November 27, 2024 17:59
@owencraston owencraston marked this pull request as ready for review November 27, 2024 18:00
@owencraston owencraston requested review from a team as code owners November 27, 2024 18:00
@owencraston owencraston added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Nov 27, 2024
Copy link
Contributor

github-actions bot commented Nov 27, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: d035bcb
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/eb88c468-4683-4d00-a460-7f9a8ecf08d7

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

@owencraston owencraston added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Nov 27, 2024
Copy link
Contributor

github-actions bot commented Nov 27, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 38174e5
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/247e5e0f-8848-441c-8458-0c6f5e35ddd0

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

@owencraston owencraston added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Nov 27, 2024
Copy link
Contributor

github-actions bot commented Nov 27, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: da504a5
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/ec58dba2-5b49-4bf7-b09e-eab458cff824

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

@owencraston owencraston changed the title chore/ Update accounts-controller @v19.0.0 and keyring-controller @v18.0.0 chore: Update accounts-controller @v19.0.0 and keyring-controller @v18.0.0 Nov 27, 2024
@owencraston owencraston added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Nov 27, 2024
Copy link
Contributor

github-actions bot commented Nov 27, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: d53f7f5
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/2818c0d9-b327-4e45-8757-223b3c0dd579

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

Copy link
Contributor

@Cal-L Cal-L left a comment

Choose a reason for hiding this comment

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

Could you also sync with @tommasini on these changes since he's working on a performance optimization, which includes a keyringcontroller patch

yarn.lock Show resolved Hide resolved
Copy link
Contributor

@tommasini tommasini left a comment

Choose a reason for hiding this comment

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

LGTM!

Yeah, the Keyring Controller patch will need to be applied to this version as well!

@owencraston
Copy link
Contributor Author

Simulator Screenshot - iPhone 13 mini - 2024-11-27 at 15 36 04

confirmed that the dapp interactions seem to be working as expected.

@owencraston owencraston added this pull request to the merge queue Nov 27, 2024
Merged via the queue into main with commit 9059cc0 Nov 27, 2024
46 of 47 checks passed
@owencraston owencraston deleted the chore/accounts-controller-bump branch November 27, 2024 23:51
@github-actions github-actions bot locked and limited conversation to collaborators Nov 27, 2024
@metamaskbot metamaskbot added the release-7.37.0 Issue or pull request that will be included in release 7.37.0 label Nov 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-7.37.0 Issue or pull request that will be included in release 7.37.0 Run Smoke E2E Triggers smoke e2e on Bitrise team-accounts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update metamask/keyring-controller to version 18.0.0 Update metamask/accounts-controller to version 19.0.0
5 participants