Skip to content

Conversation

@seaona
Copy link
Member

@seaona seaona commented Jul 23, 2024

Description

Revert "refactor: use withKeyring

Open in GitHub Codespaces

Related issues

Fixes: ci failures for Create Snap accounts

Manual testing steps

  1. check ci for ff and ff flask

https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/92931/workflows/0e8fb7fe-e5bb-4cec-816c-eed6a97c0d45/jobs/3461246/steps

https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/92931/workflows/0e8fb7fe-e5bb-4cec-816c-eed6a97c0d45/jobs/3461243

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.

@github-actions
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.

@metamaskbot metamaskbot added the team-extension-platform Extension Platform team label Jul 23, 2024
@codecov
Copy link

codecov bot commented Jul 23, 2024

Codecov Report

Attention: Patch coverage is 65.75342% with 25 lines in your changes missing coverage. Please review.

Project coverage is 69.67%. Comparing base (9395988) to head (ff84119).
Report is 1 commits behind head on develop.

Files Patch % Lines
app/scripts/metamask-controller.js 65.75% 25 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #26041   +/-   ##
========================================
  Coverage    69.67%   69.67%           
========================================
  Files         1404     1404           
  Lines        49682    49680    -2     
  Branches     13726    13730    +4     
========================================
  Hits         34614    34614           
+ Misses       15068    15066    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@seaona seaona changed the title test: debug ci failures by Revert with keyring PR fix: Revert "refactor: use withKeyring method (#25435)" Jul 23, 2024
@seaona seaona marked this pull request as ready for review July 23, 2024 10:47
@seaona seaona requested a review from a team as a code owner July 23, 2024 10:47
@sonarqubecloud
Copy link

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Reverted the use of the withKeyring method in metamask-controller.js and updated corresponding tests in metamask-controller.test.js.

  • app/scripts/metamask-controller.js: Replaced withKeyring with direct calls to getKeyringForDevice in hardware wallet methods.
  • app/scripts/metamask-controller.test.js: Reverted method names from withKeyringForDevice back to getKeyringForDevice and added new test cases for addNewKeyring and addNewAccountForKeyring.

2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

@metamaskbot
Copy link
Collaborator

Builds ready [ff84119]
Page Load Metrics (224 ± 229 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint7514197157
domContentLoaded106127136
load401781224477229
domInteractive96126136
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -225 Bytes (-0.01%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@seaona seaona merged commit 821c3bd into develop Jul 23, 2024
@seaona seaona deleted the revert-withKeyring branch July 23, 2024 11:26
@github-actions github-actions bot locked and limited conversation to collaborators Jul 23, 2024
@metamaskbot metamaskbot added the release-12.3.0 Issue or pull request that will be included in release 12.3.0 label Jul 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-12.3.0 Issue or pull request that will be included in release 12.3.0 team-extension-platform Extension Platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants