Skip to content

Conversation

@ccharly
Copy link
Contributor

@ccharly ccharly commented Nov 26, 2025

Description

Bumping @metamask/eth-snap-keyring to enable notify:accountCreated idempotency which is required by the Bitcoin Snap.

This will reduce the number of "misaligned" warnings we had with Bitcoin.

Open in GitHub Codespaces

Changelog

CHANGELOG entry: null

Related issues

Fixes:

Manual testing steps

  1. Onboard with an SRP that has a lot of created accounts (or synced accounts with "Backup & Sync"), I used 50 accounts at least
  2. Check the console, you should not see any warning regarding the Bitcoin Snap and misalignment for multichain accounts

Screenshots/Recordings

Before

Screenshot 2025-11-26 at 10 30 15 Screenshot 2025-11-26 at 10 30 35

After

Screenshot 2025-11-26 at 10 27 08

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-accounts-framework Accounts Framework team label Nov 26, 2025
@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​metamask/​keyring-internal-snap-client@​8.0.0 ⏵ 8.0.199 +11007396 +1100
Updated@​metamask/​keyring-internal-api@​9.1.0 ⏵ 9.1.11001007395 +3100
Updated@​metamask/​keyring-snap-client@​8.1.0 ⏵ 8.1.1991007595 +3100
Updated@​metamask/​eth-snap-keyring@​18.0.0 ⏵ 18.0.29910093 +197 +150

View full report

@ccharly ccharly marked this pull request as ready for review November 26, 2025 09:32
@ccharly ccharly changed the title chore: bump eth-snap-keyring (to enable notify:accountCreated idempotency) chore: bump eth-snap-keyring (to enable notify:accountCreated idempotency) Nov 26, 2025
@ccharly ccharly enabled auto-merge November 26, 2025 09:57
@ccharly ccharly disabled auto-merge November 26, 2025 09:57
@metamaskbot
Copy link
Collaborator

Builds ready [b1ab915]
UI Startup Metrics (1326 ± 131 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup13261074163213114121556
load1048850131410811331249
domContentLoaded1042839130610811171241
domInteractive2614106222187
firstPaint59491132541210081242
backgroundConnect21419525112222241
firstReactRender412481124568
getState67201683179143
initialActions1010114
loadScripts83564611041049101030
setupStore1465671825
numNetworkReqs41271493331140
BrowserifyPower User HomeuiStartup21521834284122822552625
load1032920138711510301327
domContentLoaded1018914138111510211318
domInteractive37172393732129
firstPaint66710013573999931311
backgroundConnect265206666106240550
firstReactRender944716324111131
getState18313031030203241
initialActions107112
loadScripts80770211611148001108
setupStore211063112646
numNetworkReqs101652725197250
WebpackStandard HomeuiStartup88373117111428901150
load6585601025102694873
domContentLoaded6535561004101688864
domInteractive2715114232291
firstPaint26986885214299834
backgroundConnect1063251024
firstReactRender3621241263687
getState53203133664115
initialActions106113
loadScripts650555100099686853
setupStore17683141743
numNetworkReqs41271493430144
WebpackPower User HomeuiStartup19041306261829321102437
load6835861208105684959
domContentLoaded6745811200105675954
domInteractive41172684335148
firstPaint266102975184268670
backgroundConnect118867020392608
firstReactRender954617524112128
getState18112774779181227
initialActions103012
loadScripts6715791189103672945
setupStore211054122348
numNetworkReqs1486839773196346
FirefoxBrowserifyStandard HomeuiStartup14141176196917614731747
load1074945145710610891315
domContentLoaded1072940145710610881311
domInteractive57301442985108
firstPaint------
backgroundConnect59222343767144
firstReactRender26175582948
getState2413120132451
initialActions207122
loadScripts104893013359810631300
setupStore249159202359
numNetworkReqs40281302734123
BrowserifyPower User HomeuiStartup27222122508250928693592
load1175961242621411621549
domContentLoaded1174960242521411621549
domInteractive13137603117114421
firstPaint------
backgroundConnect142361267188133311
firstReactRender89402913095129
getState258661541215254758
initialActions2036423
loadScripts1132939181117311281518
setupStore24016785234400736
numNetworkReqs101623216279239
WebpackStandard HomeuiStartup16571372231719017492158
load1277110015809213391440
domContentLoaded1276110015799213381439
domInteractive63282774186133
firstPaint------
backgroundConnect68183425279190
firstReactRender332171103752
getState2910170242989
initialActions205123
loadScripts1249108415058613091386
setupStore298230323089
numNetworkReqs40291292637121
WebpackPower User HomeuiStartup30542198545574532644696
load14851177296147514342771
domContentLoaded14851176296147514342770
domInteractive15131111021598548
firstPaint------
backgroundConnect160281204213141479
firstReactRender923925636101145
getState317751124248480840
initialActions3042627
loadScripts14131138293240314042666
setupStore1216819165123577
numNetworkReqs102602566080244
📊 Page Load Benchmark Results

Current Commit: b1ab915 | Date: 11/26/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.06s (±70ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 743ms (±67ms) 🟢 | historical mean value: 721ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 79ms (±11ms) 🟢 | historical mean value: 78ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.06s 70ms 1.01s 1.34s 1.28s 1.34s
domContentLoaded 743ms 67ms 704ms 1.01s 951ms 1.01s
firstPaint 79ms 11ms 60ms 176ms 88ms 176ms
firstContentfulPaint 79ms 11ms 60ms 176ms 88ms 176ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 84 Bytes (0%)

@ccharly ccharly changed the title chore: bump eth-snap-keyring (to enable notify:accountCreated idempotency) chore: bump eth-snap-keyring (to enable notify:accountCreated idempotency) cp-13.11.0 Nov 26, 2025
@ccharly ccharly added this pull request to the merge queue Nov 26, 2025
github-merge-queue bot pushed a commit to MetaMask/metamask-mobile that referenced this pull request Nov 26, 2025
…cy) cp-7.60.0 (#23310)

## **Description**

Bumping `@metamask/eth-snap-keyring` to enable `notify:accountCreated`
idempotency which is required by the Bitcoin Snap.

This will reduce the number of "misaligned" warnings we had with
Bitcoin.

Similar to:
- MetaMask/metamask-extension#38292

## **Changelog**

CHANGELOG entry: null

## **Related issues**

Fixes:
- #23324

## **Manual testing steps**

```gherkin
Feature: my feature name

  Scenario: user [verb for user action]
    Given [describe expected initial app state]

    When user [verb for user action]
    Then [describe expected outcome]
```

## **Screenshots/Recordings**

### **Before**

### **After**

## **Pre-merge author checklist**

- [ ] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **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.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Upgrade `@metamask/eth-snap-keyring` to ^18.0.2 and refresh related
keyring dependencies in `yarn.lock`.
> 
> - **Dependencies**:
> - Bump `@metamask/eth-snap-keyring` from `^18.0.0` to `^18.0.2` in
`package.json`.
>   - Update lockfile to resolve to `18.0.2` and align transitive deps:
>     - `@metamask/keyring-api` -> `^21.2.0`
>     - `@metamask/keyring-internal-api` -> `9.1.1`
>     - `@metamask/keyring-internal-snap-client` -> `8.0.1`
>     - `@metamask/keyring-snap-client` -> `8.1.1`
>     - `@metamask/keyring-snap-sdk` -> `7.1.1`
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
02bd3bf. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Merged via the queue into main with commit fef9144 Nov 26, 2025
202 of 203 checks passed
@ccharly ccharly deleted the chore/bump-snap-keyring branch November 26, 2025 14:58
@github-actions github-actions bot locked and limited conversation to collaborators Nov 26, 2025
@metamaskbot metamaskbot added the release-13.12.0 Issue or pull request that will be included in release 13.12.0 label Nov 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.12.0 Issue or pull request that will be included in release 13.12.0 size-XS team-accounts-framework Accounts Framework team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants