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

Remove eth-keyring-controller from DecryptMessageController #20808

Merged
merged 3 commits into from
Sep 18, 2023

Conversation

mikesposito
Copy link
Member

@mikesposito mikesposito commented Sep 11, 2023

Explanation

This PR removes the keyringController constructor options property, as the KeyringController's method can now be invoked through the messaging system.

Pre-merge author checklist

  • I've clearly explained:
    • What problem this PR is solving
    • How this problem was solved
    • How reviewers can test my changes
  • Sufficient automated test coverage has been added

Pre-merge reviewer checklist

  • Manual testing (e.g. pull and build branch, run in browser, test code being changed)
  • PR is linked to the appropriate GitHub issue
  • IF this PR fixes a bug in the release milestone, add this PR to the release milestone

If further QA is required (e.g. new feature, complex testing steps, large refactor), add the Extension QA Board label.

In this case, a QA Engineer approval will be be required.

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

@mikesposito mikesposito force-pushed the refactor/remove-keyring-from-decrypt-controller branch 3 times, most recently from 8ef55f4 to b8f95a5 Compare September 12, 2023 12:52
@codecov
Copy link

codecov bot commented Sep 12, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.02% 🎉

Comparison is base (ed323ee) 68.25% compared to head (630744c) 68.26%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #20808      +/-   ##
===========================================
+ Coverage    68.25%   68.26%   +0.02%     
===========================================
  Files         1002     1002              
  Lines        40130    40137       +7     
  Branches     10730    10743      +13     
===========================================
+ Hits         27387    27398      +11     
+ Misses       12743    12739       -4     
Files Changed Coverage Δ
app/scripts/metamask-controller.js 53.98% <ø> (+0.04%) ⬆️
app/scripts/controllers/decrypt-message.ts 82.91% <100.00%> (+2.32%) ⬆️

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

@metamaskbot
Copy link
Collaborator

Builds ready [b8f95a5]
Page Load Metrics (1755 ± 70 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint115183141199
domContentLoaded15342078175514670
load15342078175514670
domInteractive15342078175514670
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 1.07 KiB (0.03%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@mikesposito mikesposito force-pushed the refactor/remove-keyring-from-decrypt-controller branch from b8f95a5 to 740d398 Compare September 14, 2023 08:16
@metamaskbot
Copy link
Collaborator

Builds ready [740d398]
Page Load Metrics (1568 ± 41 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint117165133147
domContentLoaded1435175815688641
load1435175915688641
domInteractive1435175815688641
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 1.07 KiB (0.03%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@mikesposito mikesposito force-pushed the refactor/remove-keyring-from-decrypt-controller branch from 740d398 to 8b201dd Compare September 14, 2023 14:01
cryptodev-2s
cryptodev-2s previously approved these changes Sep 14, 2023
Copy link
Contributor

@cryptodev-2s cryptodev-2s left a comment

Choose a reason for hiding this comment

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

LGTM!

@mikesposito mikesposito force-pushed the refactor/remove-keyring-from-decrypt-controller branch from a31c0d8 to 630744c Compare September 18, 2023 13:17
@metamaskbot
Copy link
Collaborator

Builds ready [630744c]
Page Load Metrics (1462 ± 30 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint10313711894
domContentLoaded1367160314616230
load1368160414626130
domInteractive1367160314616230
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 1.07 KiB (0.03%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Copy link
Contributor

@cryptodev-2s cryptodev-2s left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM!

@mikesposito mikesposito merged commit ca7c028 into develop Sep 18, 2023
9 checks passed
@mikesposito mikesposito deleted the refactor/remove-keyring-from-decrypt-controller branch September 18, 2023 14:44
@github-actions github-actions bot locked and limited conversation to collaborators Sep 18, 2023
@metamaskbot metamaskbot added the release-11.3.0 Issue or pull request that will be included in release 11.3.0 label Sep 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-11.3.0 Issue or pull request that will be included in release 11.3.0 team-wallet-framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove @metamask/eth-keyring-controller from DecryptMessageController
4 participants