Skip to content

Conversation

@stanleyyconsensys
Copy link
Contributor

@stanleyyconsensys stanleyyconsensys commented Dec 1, 2025

Description

This PR migrates the MegaETH Testnet from v1 (chain ID 0x18c6 / 6342) to v2 (chain ID 0x18c7 / 6343) across the MetaMask extension codebase.

The migration updates the network's RPC endpoint from https://carrot.megaeth.com/rpc to https://timothy.megaeth.com/rpc, the block explorer from https://megaexplorer.xyz to https://megaeth-testnet-v2.blockscout.com, and standardizes the network name to "MegaETH Testnet".

The changes include a state migration script that removes the v1 configuration and adds v2, along with updates to all network constants, test fixtures, and e2e tests.

Adds migration to transition user state from MegaETH Testnet v1 to v2
Updates network constants to include both v1 (for backward compatibility) and v2 configurations
Updates all test fixtures and e2e tests to use the new v2 network configuration

Open in GitHub Codespaces

Changelog

CHANGELOG entry: Added new network client megaeth-testnet-v2
CHANGELOG entry: Removed network client megaeth-testnet

Related issues

Fixes:

Manual testing steps

  1. Go to network list
  2. Select MegaETH testnet
  3. the network should be able to select
  4. click edit on the network menu of MegaETH testnet
  5. we should see the information to be the same as the screen capture

Screenshots/Recordings

Before

image

After

image

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.

Note

Migrates MegaETH Testnet to chain 0x18c7 with new RPC/explorer, adds migration 184 to replace v1 config and switch selection, and updates constants, tests, fixtures, and privacy lists.

  • Migration 184:
    • Adds MegaETH Testnet v2 config (chainId 0x18c7, RPC https://timothy.megaeth.com/rpc, explorer https://megaeth-testnet-v2.blockscout.com).
    • Removes MegaETH Testnet v1 (0x18c6) from configs and enabled map; switches selectedNetworkClientId to mainnet if it referenced v1.
  • Controller Init:
    • Drops megaeth-testnet from ADDITIONAL_DEFAULT_NETWORKS; temporarily injects 0x18c7 config into initial state.
  • Network Constants:
    • Adds MEGAETH_TESTNET_V2 across CHAIN_IDS, names, images, RPC map, currency maps, display names, test network lists, and ethers mapping; defines MEGAETH_TESTNET_V2_RPC_URL.
  • Tests/Fixtures:
    • Updates fixtures, snapshots, and mocks to megaeth-testnet-v2 IDs/URLs; adjusts unit/e2e tests (including EIP-7702 networks ordering); comments out MegaETH v2 network-connection test temporarily.
  • Privacy/Mocks:
    • Adds timothy.megaeth.com to privacy snapshot and e2e blocklist; updates chainid.network mock for v2.

Written by Cursor Bugbot for commit 9d051fc. This will update automatically on new commits. Configure here.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 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.

@metamaskbot
Copy link
Collaborator

metamaskbot commented Dec 1, 2025

✨ Files requiring CODEOWNER review ✨

@MetaMask/confirmations (1 files, +9 -9)
  • 📁 ui/
    • 📁 pages/
      • 📁 confirmations/
        • 📁 hooks/
          • 📄 useEIP7702Networks.test.ts +9 -9

🕵️ @MetaMask/extension-privacy-reviewers (2 files, +23 -3)
  • 📁 test/
    • 📁 e2e/
      • 📁 tests/
        • 📁 settings/
          • 📄 state-logs.json +22 -3
    • 📄 privacy-snapshot.json +1 -0

🧪 @MetaMask/qa (2 files, +23 -4)
  • 📁 test/
    • 📁 e2e/
      • 📁 tests/
        • 📁 settings/
          • 📄 state-logs.json +22 -3
        • 📄 mock-e2e.js +1 -1

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the MegaETH Testnet from v1 (chain ID 0x18c6 / 6342) to v2 (chain ID 0x18c7 / 6343) across the MetaMask extension codebase. The migration updates the network's RPC endpoint from https://carrot.megaeth.com/rpc to https://timothy.megaeth.com/rpc, the block explorer from https://megaexplorer.xyz to https://megaeth-testnet-v2.blockscout.com, and standardizes the network name to "MegaETH Testnet". The changes include a state migration script that removes the v1 configuration and adds v2, along with updates to all network constants, test fixtures, and e2e tests.

  • Adds migration #184 to transition user state from MegaETH Testnet v1 to v2
  • Updates network constants to include both v1 (for backward compatibility) and v2 configurations
  • Updates all test fixtures and e2e tests to use the new v2 network configuration

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
app/scripts/migrations/index.js Registers migration #184 in the migrations list
app/scripts/migrations/184.ts Implements the migration logic to add v2 config and remove v1 config from user state
app/scripts/migrations/184.test.ts Adds tests for the migration functionality
app/scripts/controller-init/network-controller-init.ts Temporarily adds v2 network manually and removes v1 from default networks
app/scripts/controller-init/network-controller-init.test.ts Updates snapshot tests to reflect v2 configuration
shared/constants/network.ts Adds v2 constants alongside existing v1 constants for backward compatibility
test/e2e/fixtures/fixture-builder.js Updates fixture builder to use v2 configuration
test/e2e/fixtures/onboarding-fixture.json Updates fixture to include v2 network and adds both v1 and v2 to NetworkEnablementController
test/e2e/mock-e2e.js Adds v2 RPC host to blocklist for testing
test/e2e/mock-response-data/chain-id-network-chains.json Updates mock chain data with v2 information
test/e2e/tests/network/network-connection.spec.ts Updates e2e tests to use v2 chain ID
ui/pages/confirmations/hooks/useEIP7702Networks.test.ts Updates test expectations to use v2 chain ID
privacy-snapshot.json Adds v2 RPC host to privacy snapshot

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@stanleyyconsensys stanleyyconsensys marked this pull request as ready for review December 1, 2025 13:38
@stanleyyconsensys stanleyyconsensys requested review from a team as code owners December 1, 2025 13:38
@metamaskbot
Copy link
Collaborator

Builds ready [167e9bc]
UI Startup Metrics (1289 ± 100 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12891079165210013571461
load106288113399611251236
domContentLoaded105587113269511201229
domInteractive271598202488
firstPaint53895135242610561210
backgroundConnect22720127414233261
firstReactRender322176113655
getState3816138204468
initialActions104112
loadScripts8366691092948941011
setupStore1274151323
numNetworkReqs1257620571
BrowserifyPower User HomeuiStartup20671678274027222962650
load1009867146413010041356
domContentLoaded99585914531319861345
domInteractive3217133223086
firstPaint4679113523669311183
backgroundConnect250204762102225554
firstReactRender5840113136384
getState18713669659199245
initialActions1010112
loadScripts78966512361287801134
setupStore20114472338
numNetworkReqs1657042578208372
WebpackStandard HomeuiStartup8296901158948691004
load64856184379698812
domContentLoaded64355483878693807
domInteractive261598202286
firstPaint22676834158216622
backgroundConnect1155981324
firstReactRender27206583041
getState261379123444
initialActions103112
loadScripts64055282977691798
setupStore1052341219
numNetworkReqs1257620571
WebpackPower User HomeuiStartup15331228266826215482050
load6755701172105676903
domContentLoaded6665631166105663895
domInteractive36171713231124
firstPaint29990901213369834
backgroundConnect238546581623
firstReactRender58488886274
getState17614533324180220
initialActions102112
loadScripts6635611157104661886
setupStore20952102244
numNetworkReqs1737043482220411
FirefoxBrowserifyStandard HomeuiStartup13941137203815314901646
load1143959169710511941303
domContentLoaded1143959169710511931303
domInteractive71322894090145
firstPaint------
backgroundConnect52231623371132
firstReactRender24184652535
getState176229321163
initialActions102122
loadScripts111294216789811611277
setupStore136117131132
numNetworkReqs1156716660
BrowserifyPower User HomeuiStartup26572074440240728403511
load12211007248219512281582
domContentLoaded12211007248219512281582
domInteractive1204251699110414
firstPaint------
backgroundConnect110291004104111257
firstReactRender6040186186395
getState32873975237514779
initialActions208123
loadScripts1187993233618311871543
setupStore17013816196177738
numNetworkReqs100613256378233
WebpackStandard HomeuiStartup14971281199313515681845
load1252110915749012971444
domContentLoaded1252110915749012971444
domInteractive792822944103161
firstPaint------
backgroundConnect45181632745108
firstReactRender25194142733
getState1173131216
initialActions205134
loadScripts1224109115508512691399
setupStore156158211243
numNetworkReqs1156115758
WebpackPower User HomeuiStartup30212137639483729574951
load14781182309144714112715
domContentLoaded14781182309144714112715
domInteractive1113095212399354
firstPaint------
backgroundConnect1722616892561561014
firstReactRender65391982565125
getState340701490275546910
initialActions207123
loadScripts14031149306336513682488
setupStore1336719169143548
numNetworkReqs1015924351130235
📊 Page Load Benchmark Results

Current Commit: 167e9bc | Date: 12/1/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.02s (±38ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 714ms (±35ms) 🟢 | historical mean value: 725ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 74ms (±12ms) 🟢 | historical mean value: 77ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.02s 38ms 1.00s 1.32s 1.04s 1.32s
domContentLoaded 714ms 35ms 691ms 986ms 728ms 986ms
firstPaint 74ms 12ms 56ms 184ms 84ms 184ms
firstContentfulPaint 74ms 12ms 56ms 184ms 84ms 184ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.67 KiB (0.05%)
  • ui: 253 Bytes (0%)
  • common: 988 Bytes (0.01%)

@metamaskbot
Copy link
Collaborator

Builds ready [5754e23]
UI Startup Metrics (1269 ± 123 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12691001178412313411469
load1053859151410811021254
domContentLoaded1047854148310610991247
domInteractive2515119182177
firstPaint5088215104169711234
backgroundConnect22419827015235248
firstReactRender312073103652
getState39141242341105
initialActions106113
loadScripts82965612401028731020
setupStore1263151421
numNetworkReqs1257620572
BrowserifyPower User HomeuiStartup20001762267715420582333
load1033909161512610471317
domContentLoaded1019891160512710331305
domInteractive3417176253398
firstPaint56710213483919771241
backgroundConnect25920256893233535
firstReactRender5641106146090
getState18713667455201231
initialActions106113
loadScripts80769113251238171094
setupStore211089112442
numNetworkReqs93672132498134
WebpackStandard HomeuiStartup8206871104918611050
load63855793484674821
domContentLoaded63355392983670808
domInteractive2715207272190
firstPaint24679818165233615
backgroundConnect1055061018
firstReactRender27204763139
getState251356113246
initialActions104112
loadScripts63055092182668800
setupStore1164651119
numNetworkReqs1257520571
WebpackPower User HomeuiStartup16381326218521817322106
load694609114493704930
domContentLoaded684600114094693925
domInteractive39181833137126
firstPaint27396939183264674
backgroundConnect45860311419330
firstReactRender624397106790
getState18013325422192218
initialActions106112
loadScripts681598113092691916
setupStore23765132551
numNetworkReqs1676630464221283
FirefoxBrowserifyStandard HomeuiStartup13551152198615414231638
load111799014199511661316
domContentLoaded111798914199611651316
domInteractive69352494091142
firstPaint------
backgroundConnect46231723046107
firstReactRender24183952537
getState1174561124
initialActions103122
loadScripts108997013978911291279
setupStore1245781234
numNetworkReqs1257017664
BrowserifyPower User HomeuiStartup25872046418242426993871
load12231031245625411861686
domContentLoaded12231029245625411861686
domInteractive1213753399116415
firstPaint------
backgroundConnect14839950158156503
firstReactRender6039137176493
getState25953834212281759
initialActions219237
loadScripts11761012234721811421578
setupStore14215644173144579
numNetworkReqs92572594783227
WebpackStandard HomeuiStartup15331269196015316181861
load1256106214779413221449
domContentLoaded1256106214779413221449
domInteractive66281663584133
firstPaint------
backgroundConnect55191883864158
firstReactRender272083102840
getState147124151331
initialActions103122
loadScripts1230104514388712911390
setupStore177170241340
numNetworkReqs1256516763
WebpackPower User HomeuiStartup29062172477268028574523
load15181176301343815512751
domContentLoaded15171176301243815502750
domInteractive12030994126111386
firstPaint------
backgroundConnect153361119193141599
firstReactRender68382774061180
getState29863969247454810
initialActions207123
loadScripts14461126298937315072449
setupStore12851050189104635
numNetworkReqs906024836108172
📊 Page Load Benchmark Results

Current Commit: 5754e23 | Date: 12/2/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±38ms) 🟡 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 723ms (±36ms) 🟢 | historical mean value: 732ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 77ms (±13ms) 🟢 | historical mean value: 81ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 38ms 1.02s 1.33s 1.07s 1.33s
domContentLoaded 723ms 36ms 702ms 998ms 749ms 998ms
firstPaint 77ms 13ms 60ms 192ms 84ms 192ms
firstContentfulPaint 77ms 13ms 60ms 192ms 84ms 192ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.51 KiB (0.05%)
  • ui: 0 Bytes (0%)
  • common: 841 Bytes (0.01%)

1 similar comment
@metamaskbot
Copy link
Collaborator

Builds ready [5754e23]
UI Startup Metrics (1269 ± 123 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12691001178412313411469
load1053859151410811021254
domContentLoaded1047854148310610991247
domInteractive2515119182177
firstPaint5088215104169711234
backgroundConnect22419827015235248
firstReactRender312073103652
getState39141242341105
initialActions106113
loadScripts82965612401028731020
setupStore1263151421
numNetworkReqs1257620572
BrowserifyPower User HomeuiStartup20001762267715420582333
load1033909161512610471317
domContentLoaded1019891160512710331305
domInteractive3417176253398
firstPaint56710213483919771241
backgroundConnect25920256893233535
firstReactRender5641106146090
getState18713667455201231
initialActions106113
loadScripts80769113251238171094
setupStore211089112442
numNetworkReqs93672132498134
WebpackStandard HomeuiStartup8206871104918611050
load63855793484674821
domContentLoaded63355392983670808
domInteractive2715207272190
firstPaint24679818165233615
backgroundConnect1055061018
firstReactRender27204763139
getState251356113246
initialActions104112
loadScripts63055092182668800
setupStore1164651119
numNetworkReqs1257520571
WebpackPower User HomeuiStartup16381326218521817322106
load694609114493704930
domContentLoaded684600114094693925
domInteractive39181833137126
firstPaint27396939183264674
backgroundConnect45860311419330
firstReactRender624397106790
getState18013325422192218
initialActions106112
loadScripts681598113092691916
setupStore23765132551
numNetworkReqs1676630464221283
FirefoxBrowserifyStandard HomeuiStartup13551152198615414231638
load111799014199511661316
domContentLoaded111798914199611651316
domInteractive69352494091142
firstPaint------
backgroundConnect46231723046107
firstReactRender24183952537
getState1174561124
initialActions103122
loadScripts108997013978911291279
setupStore1245781234
numNetworkReqs1257017664
BrowserifyPower User HomeuiStartup25872046418242426993871
load12231031245625411861686
domContentLoaded12231029245625411861686
domInteractive1213753399116415
firstPaint------
backgroundConnect14839950158156503
firstReactRender6039137176493
getState25953834212281759
initialActions219237
loadScripts11761012234721811421578
setupStore14215644173144579
numNetworkReqs92572594783227
WebpackStandard HomeuiStartup15331269196015316181861
load1256106214779413221449
domContentLoaded1256106214779413221449
domInteractive66281663584133
firstPaint------
backgroundConnect55191883864158
firstReactRender272083102840
getState147124151331
initialActions103122
loadScripts1230104514388712911390
setupStore177170241340
numNetworkReqs1256516763
WebpackPower User HomeuiStartup29062172477268028574523
load15181176301343815512751
domContentLoaded15171176301243815502750
domInteractive12030994126111386
firstPaint------
backgroundConnect153361119193141599
firstReactRender68382774061180
getState29863969247454810
initialActions207123
loadScripts14461126298937315072449
setupStore12851050189104635
numNetworkReqs906024836108172
📊 Page Load Benchmark Results

Current Commit: 5754e23 | Date: 12/2/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±38ms) 🟡 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 723ms (±36ms) 🟢 | historical mean value: 732ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 77ms (±13ms) 🟢 | historical mean value: 81ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 38ms 1.02s 1.33s 1.07s 1.33s
domContentLoaded 723ms 36ms 702ms 998ms 749ms 998ms
firstPaint 77ms 13ms 60ms 192ms 84ms 192ms
firstContentfulPaint 77ms 13ms 60ms 192ms 84ms 192ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.51 KiB (0.05%)
  • ui: 0 Bytes (0%)
  • common: 841 Bytes (0.01%)

@github-actions github-actions bot added size-L and removed size-M labels Dec 2, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [f061f95]
UI Startup Metrics (1288 ± 131 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12881063168313113831532
load1071904134511211561285
domContentLoaded1064892133811111491274
domInteractive2915166242490
firstPaint57983128843010381257
backgroundConnect22519629216234255
firstReactRender332073123762
getState361585144367
initialActions108114
loadScripts84667211181069231048
setupStore1363351523
numNetworkReqs281897231894
BrowserifyPower User HomeuiStartup------
load------
domContentLoaded------
domInteractive------
firstPaint------
backgroundConnect------
firstReactRender------
getState------
initialActions------
loadScripts------
setupStore------
numNetworkReqs------
WebpackStandard HomeuiStartup8707251081809251011
load67757690877731820
domContentLoaded67257290076727813
domInteractive2816126232394
firstPaint2019866992207351
backgroundConnect11674101128
firstReactRender3020267253145
getState2615120143346
initialActions103111
loadScripts66956988875725810
setupStore1062331218
numNetworkReqs271890211886
WebpackPower User HomeuiStartup15611223209323517002008
load64555692389643881
domContentLoaded63655191789632877
domInteractive34181753131118
firstPaint300109918205351700
backgroundConnect39758510416284
firstReactRender6045117116482
getState19015170972187236
initialActions104112
loadScripts63354990887630869
setupStore18949101945
numNetworkReqs1626932362217297
FirefoxBrowserifyStandard HomeuiStartup12621058175315313201622
load1043910143410310931222
domContentLoaded1043910143310310931222
domInteractive56301693080123
firstPaint------
backgroundConnect4020187284299
firstReactRender23185052334
getState116106111120
initialActions103122
loadScripts102089414039810491174
setupStore126100111132
numNetworkReqs281888192881
BrowserifyPower User HomeuiStartup26082004526855226384364
load1224956308533212481585
domContentLoaded1223955308433212471585
domInteractive12035857112119382
firstPaint------
backgroundConnect142221042176146455
firstReactRender61391452067102
getState296741003225397778
initialActions2142423
loadScripts1180938289430811781559
setupStore1586789207138666
numNetworkReqs90592524581224
WebpackStandard HomeuiStartup15311302211314216071793
load1258107714818813101457
domContentLoaded1258107714818813101457
domInteractive68282293783143
firstPaint------
backgroundConnect50211883451118
firstReactRender271971102664
getState14784141448
initialActions106123
loadScripts1231106214338212841390
setupStore187124181856
numNetworkReqs281886192279
WebpackPower User HomeuiStartup30102245516373530114833
load14961164302642615382817
domContentLoaded14951164302542615382817
domInteractive1162941699111378
firstPaint------
backgroundConnect182251339241147784
firstReactRender6239198246299
getState336651330289499903
initialActions216123
loadScripts14351143290737215082629
setupStore118779517491582
numNetworkReqs936332147101215
📊 Page Load Benchmark Results

Current Commit: f061f95 | Date: 12/2/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.06s (±43ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 741ms (±40ms) 🟢 | historical mean value: 727ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 79ms (±13ms) 🟢 | historical mean value: 80ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.06s 43ms 1.02s 1.38s 1.09s 1.38s
domContentLoaded 741ms 40ms 709ms 1.04s 768ms 1.04s
firstPaint 79ms 13ms 64ms 204ms 88ms 204ms
firstContentfulPaint 79ms 13ms 64ms 204ms 88ms 204ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 4.48 KiB (0.09%)
  • ui: -1 Bytes (0%)
  • common: 841 Bytes (0.01%)

@metamaskbot
Copy link
Collaborator

Builds ready [7a6d5fa]
UI Startup Metrics (1217 ± 112 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12171029155011212741455
load102187313499910621201
domContentLoaded101486813429810551197
domInteractive251585182180
firstPaint55197128641510081185
backgroundConnect21519626113220242
firstReactRender28186093050
getState3517102154361
initialActions103112
loadScripts806665113596840990
setupStore1162941321
numNetworkReqs2818106231895
BrowserifyPower User HomeuiStartup20311593287423521062549
load1012893143911710241316
domContentLoaded997885141611810081305
domInteractive3317116213492
firstPaint5478814513779511062
backgroundConnect24120277986228363
firstReactRender5639114155994
getState19513066754207241
initialActions105112
loadScripts79068111961167971097
setupStore211069112446
numNetworkReqs1445833660202237
WebpackStandard HomeuiStartup813698110771844969
load63056685467649804
domContentLoaded62556284867646795
domInteractive2614132232189
firstPaint23890854185208768
backgroundConnect962841017
firstReactRender27194463237
getState261365113543
initialActions104111
loadScripts62356083865644784
setupStore1063541216
numNetworkReqs279106241894
WebpackPower User HomeuiStartup16301278223224818332055
load67058595185677891
domContentLoaded66057794185665885
domInteractive36181442934117
firstPaint27091957194253703
backgroundConnect49762112718417
firstReactRender59428796576
getState17413423419185204
initialActions104112
loadScripts65757593983663875
setupStore21660122353
numNetworkReqs1606836759215275
FirefoxBrowserifyStandard HomeuiStartup14221184202914915161704
load115999714449212171333
domContentLoaded115999714449212171333
domInteractive73321693490139
firstPaint------
backgroundConnect54261572767103
firstReactRender26195972740
getState147160181226
initialActions102122
loadScripts112497814208611811267
setupStore166226261236
numNetworkReqs281888202482
BrowserifyPower User HomeuiStartup26501974503956526834191
load1227964297532112361704
domContentLoaded1227964297432112361704
domInteractive136351018141131406
firstPaint------
backgroundConnect157281070170157516
firstReactRender58381181760100
getState28162874222421787
initialActions208123
loadScripts1184944278729711921622
setupStore14512811189151665
numNetworkReqs93603344891216
WebpackStandard HomeuiStartup15441283219717116041903
load1263107315159513261468
domContentLoaded1262107315139513261468
domInteractive62281503082130
firstPaint------
backgroundConnect52232393946152
firstReactRender2819154152839
getState176189261378
initialActions102022
loadScripts1232105714468513001387
setupStore187210231554
numNetworkReqs281883192079
WebpackPower User HomeuiStartup28942167593865229014557
load14561163275133814842492
domContentLoaded14551163275033814842492
domInteractive11732543103108398
firstPaint------
backgroundConnect189261547257152960
firstReactRender6342292286495
getState25870808204290727
initialActions5010314338
loadScripts13741115238422314051897
setupStore1469966191193613
numNetworkReqs93582384891230
📊 Page Load Benchmark Results

Current Commit: 7a6d5fa | Date: 12/3/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±38ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 715ms (±35ms) 🟢 | historical mean value: 722ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 75ms (±13ms) 🟢 | historical mean value: 77ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 38ms 1.01s 1.32s 1.04s 1.32s
domContentLoaded 715ms 35ms 699ms 985ms 722ms 985ms
firstPaint 75ms 13ms 56ms 188ms 84ms 188ms
firstContentfulPaint 75ms 13ms 56ms 188ms 84ms 188ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 4.48 KiB (0.09%)
  • ui: 7 Bytes (0%)
  • common: 835 Bytes (0.01%)

@metamaskbot
Copy link
Collaborator

Builds ready [b0c843c]
UI Startup Metrics (1278 ± 107 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12781038154410713571454
load105388413479211191214
domContentLoaded104788113439111121207
domInteractive271598202386
firstPaint52585123641110401177
backgroundConnect22419726715231260
firstReactRender2920120133145
getState3615131204094
initialActions106112
loadScripts829668111789881992
setupStore1173941220
numNetworkReqs2818103241895
BrowserifyPower User HomeuiStartup20281650262720621972402
load1007889173013210101292
domContentLoaded99188517211339911280
domInteractive3518169263494
firstPaint5339113123699481117
backgroundConnect24520674895229581
firstReactRender5639114136189
getState20113169099202263
initialActions104113
loadScripts78667315061297811056
setupStore20114372438
numNetworkReqs1606130556211246
WebpackStandard HomeuiStartup8437161135878851011
load64956791776671813
domContentLoaded64455891176666807
domInteractive2816135242395
firstPaint24077916177220643
backgroundConnect1052741117
firstReactRender282010193239
getState26135193245
initialActions104112
loadScripts64155690274664797
setupStore1162841319
numNetworkReqs279107231892
WebpackPower User HomeuiStartup15751260221922516392021
load671592108290686884
domContentLoaded661584107590666879
domInteractive35171733230122
firstPaint264101878170263679
backgroundConnect38763710119145
firstReactRender5944107116383
getState18712667371188224
initialActions104112
loadScripts658582106588664871
setupStore21754112347
numNetworkReqs1686831162222290
FirefoxBrowserifyStandard HomeuiStartup13511127200214914381620
load110196113399911621320
domContentLoaded110096113389911621320
domInteractive68341473391141
firstPaint------
backgroundConnect49233223858123
firstReactRender24186672540
getState147190251121
initialActions102122
loadScripts107293713149111381245
setupStore156153211160
numNetworkReqs281883192680
BrowserifyPower User HomeuiStartup26792099381227628163187
load12541097185414112861591
domContentLoaded12541095185414112861591
domInteractive13559648105134400
firstPaint------
backgroundConnect16246939169144615
firstReactRender65441381867114
getState25471886187274758
initialActions218137
loadScripts12151068181712812471517
setupStore19626777216244747
numNetworkReqs95643495489235
WebpackStandard HomeuiStartup15681309228618416202007
load1275113915038213231429
domContentLoaded1275113815038213231428
domInteractive69311873599132
firstPaint------
backgroundConnect55213004656175
firstReactRender27195372840
getState167145221544
initialActions104123
loadScripts1247112214757412941379
setupStore268234401999
numNetworkReqs281888212084
WebpackPower User HomeuiStartup29942235517777629254826
load15141175303944815342794
domContentLoaded15131175303344815342794
domInteractive1173141594125387
firstPaint------
backgroundConnect2173013403131521116
firstReactRender65391822962147
getState32557958238489845
initialActions206123
loadScripts14091155298229714971861
setupStore14761129215118735
numNetworkReqs936025439107177
📊 Page Load Benchmark Results

Current Commit: b0c843c | Date: 12/3/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±41ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 718ms (±38ms) 🟢 | historical mean value: 722ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 77ms (±10ms) 🟢 | historical mean value: 77ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 41ms 1.01s 1.35s 1.05s 1.35s
domContentLoaded 718ms 38ms 701ms 1.02s 739ms 1.02s
firstPaint 77ms 10ms 60ms 168ms 84ms 168ms
firstContentfulPaint 77ms 10ms 60ms 168ms 84ms 168ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 4.48 KiB (0.09%)
  • ui: 7 Bytes (0%)
  • common: 835 Bytes (0.01%)

}

// Add the MegaETH Testnet v2 network configuration to the enabled network map.
eip155NetworkMap[MEGAETH_TESTNET_V2_CONFIG.chainId] = false;
Copy link

Choose a reason for hiding this comment

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

Bug: Migration loses v1 enabled state when setting v2

The migration deletes the v1 entry from eip155NetworkMap and then unconditionally sets v2 to false. This discards the user's enablement preference — if v1 was enabled (true), v2 will still be set to false (disabled). The enabled state from v1 should be preserved and applied to v2 instead of always hardcoding false.

Fix in Cursor Fix in Web

Copy link
Contributor Author

@stanleyyconsensys stanleyyconsensys Dec 3, 2025

Choose a reason for hiding this comment

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

we default move to mainnet, hence we set megaETH testnet v2 to false (not enabled)

@metamaskbot
Copy link
Collaborator

Builds ready [e5ec629]
UI Startup Metrics (1222 ± 110 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12221027152611012971410
load102685813649610731203
domContentLoaded102085513599510671197
domInteractive3015439462179
firstPaint4698312023929821149
backgroundConnect21419324810218234
firstReactRender27185883047
getState3314166213562
initialActions103112
loadScripts812662116094859994
setupStore1162631120
numNetworkReqs2818107241895
BrowserifyPower User HomeuiStartup20681765306320421372436
load1042920182214710311413
domContentLoaded1028910181214710161401
domInteractive35181282437101
firstPaint55510014494039821324
backgroundConnect258208791101238526
firstReactRender6140114166698
getState20513875394207253
initialActions107112
loadScripts81169615441427951171
setupStore2195792542
numNetworkReqs1416627555198250
WebpackStandard HomeuiStartup811690104075850972
load62356280465641788
domContentLoaded61955279864638781
domInteractive261599212288
firstPaint20178775141184645
backgroundConnect953651018
firstReactRender2819234213139
getState271361113648
initialActions105112
loadScripts61655078863636776
setupStore1153851123
numNetworkReqs279100231895
WebpackPower User HomeuiStartup16241340222119517272028
load69359899680707870
domContentLoaded68259098981700865
domInteractive36191362734110
firstPaint284101930198279723
backgroundConnect103959918429564
firstReactRender6248110106780
getState17313733026182216
initialActions102012
loadScripts67958897980698856
setupStore22962122548
numNetworkReqs92652452798156
FirefoxBrowserifyStandard HomeuiStartup13411110185416514471726
load1101940160711011701313
domContentLoaded1100940160711011691313
domInteractive65322083584137
firstPaint------
backgroundConnect51221954056153
firstReactRender24196892450
getState11686101022
initialActions102112
loadScripts107192115069711391244
setupStore165216291241
numNetworkReqs281884192678
BrowserifyPower User HomeuiStartup26331908453146827353859
load1195987201216112391548
domContentLoaded1194987201116112391548
domInteractive12834559106136379
firstPaint------
backgroundConnect13133626121148514
firstReactRender5937147186298
getState26160914197263777
initialActions2039423
loadScripts1156965190615112121470
setupStore19310790220282703
numNetworkReqs93593234884230
WebpackStandard HomeuiStartup16501347221218317062098
load1332116916389513881506
domContentLoaded1332116816379513881506
domInteractive78282323592132
firstPaint------
backgroundConnect60192283872140
firstReactRender282086112840
getState2371833616130
initialActions102122
loadScripts1299114915588513581471
setupStore217220281656
numNetworkReqs281887212085
WebpackPower User HomeuiStartup29792258555168029634670
load14981200313440915072712
domContentLoaded14971200313440915062711
domInteractive1112742591107385
firstPaint------
backgroundConnect2003112892771671042
firstReactRender6344181226493
getState331611247260473854
initialActions216123
loadScripts13971173294925714801701
setupStore13291116180121574
numNetworkReqs925925137110165
📊 Page Load Benchmark Results

Current Commit: e5ec629 | Date: 12/3/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±43ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 716ms (±40ms) 🟢 | historical mean value: 722ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±14ms) 🟢 | historical mean value: 78ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 43ms 1.00s 1.37s 1.06s 1.37s
domContentLoaded 716ms 40ms 695ms 1.04s 749ms 1.04s
firstPaint 76ms 14ms 56ms 196ms 84ms 196ms
firstContentfulPaint 76ms 14ms 56ms 196ms 84ms 196ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 4.61 KiB (0.09%)
  • ui: 59 Bytes (0%)
  • common: 835 Bytes (0.01%)

@metamaskbot
Copy link
Collaborator

Builds ready [378e4dd]
UI Startup Metrics (1223 ± 120 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1223991168512012951409
load1017832139110510771206
domContentLoaded1010828138510410651199
domInteractive2615122212182
firstPaint5879412454039941172
backgroundConnect20518429216213230
firstReactRender301773113552
getState3414114174160
initialActions106112
loadScripts814634112999875994
setupStore1262841222
numNetworkReqs281899231895
BrowserifyPower User HomeuiStartup20581756259918421952420
load1024896142912210231386
domContentLoaded1008891140412010041369
domInteractive36181292436101
firstPaint5139314423669671076
backgroundConnect264210718116235616
firstReactRender5739116156097
getState20114466671215242
initialActions108113
loadScripts79968611941197901143
setupStore2285482540
numNetworkReqs1557128855206246
WebpackStandard HomeuiStartup816704103272849978
load63156585065648790
domContentLoaded62655984465644785
domInteractive2715125242294
firstPaint221100805155192641
backgroundConnect95193916
firstReactRender281910293238
getState271377113444
initialActions104112
loadScripts62455783463641780
setupStore1042641221
numNetworkReqs27995221891
WebpackPower User HomeuiStartup15961261221821216312011
load672577111589687892
domContentLoaded663570110989679885
domInteractive35181372734114
firstPaint287102865183297663
backgroundConnect74765615922566
firstReactRender58438596379
getState18512472277186218
initialActions104112
loadScripts660568109987677876
setupStore21956122351
numNetworkReqs1596830363216292
FirefoxBrowserifyStandard HomeuiStartup13511106180216314591687
load1101943149510111571315
domContentLoaded1101943149510111571315
domInteractive70322353991139
firstPaint------
backgroundConnect51203033958127
firstReactRender25188492444
getState127138141025
initialActions103112
loadScripts107192614689311141251
setupStore146134201136
numNetworkReqs281890193081
BrowserifyPower User HomeuiStartup26471949477260826384351
load1206983267234011662504
domContentLoaded1206983267234011602504
domInteractive1103344380112330
firstPaint------
backgroundConnect168261167236125874
firstReactRender6136209266197
getState27686987206371746
initialActions2038423
loadScripts1154952249725911331568
setupStore1457805200131741
numNetworkReqs90572575081244
WebpackStandard HomeuiStartup14901265201016715721864
load12391076158110612961475
domContentLoaded12391076158110612961475
domInteractive68281913783132
firstPaint------
backgroundConnect46171562846116
firstReactRender23185952433
getState1165251319
initialActions102012
loadScripts1213106115539912731420
setupStore207202331594
numNetworkReqs271893192079
WebpackPower User HomeuiStartup30612208617685430705085
load15041169307549214742885
domContentLoaded15041169307549314742885
domInteractive1093147189109311
firstPaint------
backgroundConnect1852911782511441017
firstReactRender62381982761126
getState322791000253508847
initialActions207123
loadScripts14381134289442714472795
setupStore1395802186157663
numNetworkReqs94613265480233
📊 Page Load Benchmark Results

Current Commit: 378e4dd | Date: 12/3/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±44ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 723ms (±40ms) 🟢 | historical mean value: 722ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±12ms) 🟢 | historical mean value: 78ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 44ms 1.01s 1.38s 1.06s 1.38s
domContentLoaded 723ms 40ms 698ms 1.05s 739ms 1.05s
firstPaint 76ms 12ms 56ms 184ms 88ms 184ms
firstContentfulPaint 76ms 12ms 56ms 184ms 88ms 184ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 4.61 KiB (0.09%)
  • ui: 59 Bytes (0%)
  • common: 835 Bytes (0.01%)

@metamaskbot
Copy link
Collaborator

Builds ready [ed32150]
UI Startup Metrics (1250 ± 118 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12501033174611812991444
load1044871141910710801241
domContentLoaded1038867141310610751235
domInteractive2616107202287
firstPaint50883126340810241223
backgroundConnect21719627414224248
firstReactRender2920159153147
getState3616137184063
initialActions107112
loadScripts82666711821008651018
setupStore1172941219
numNetworkReqs281897231894
BrowserifyPower User HomeuiStartup20101734255418020952417
load1024902147911910201342
domContentLoaded1011891146812110021330
domInteractive34171402433102
firstPaint5159514793769601046
backgroundConnect254207793103231548
firstReactRender5640110136083
getState18313436134199245
initialActions104112
loadScripts79967612581207911117
setupStore20116182336
numNetworkReqs1076825942119212
WebpackStandard HomeuiStartup815697116975848965
load63256589472648798
domContentLoaded62855988771644794
domInteractive261596212293
firstPaint21381816143200589
backgroundConnect96243916
firstReactRender27196273143
getState261483123349
initialActions103111
loadScripts62555787670642785
setupStore1064351219
numNetworkReqs27996231892
WebpackPower User HomeuiStartup16221295220722918382063
load66057495284663873
domContentLoaded65056694385652868
domInteractive34161382733106
firstPaint31690751197575671
backgroundConnect45859311418469
firstReactRender614191106585
getState19013869655193229
initialActions104112
loadScripts64756592383650859
setupStore20753122147
numNetworkReqs1636741164218293
FirefoxBrowserifyStandard HomeuiStartup12911101166714713891638
load1059932135410211331292
domContentLoaded1058932135410211331292
domInteractive57312173081108
firstPaint------
backgroundConnect4220310374187
firstReactRender24175772444
getState136131161039
initialActions103112
loadScripts103291513309311011248
setupStore11682101032
numNetworkReqs281886192678
BrowserifyPower User HomeuiStartup26072012425845526944047
load1198985254126112341489
domContentLoaded1197985254126112341489
domInteractive129341047129127387
firstPaint------
backgroundConnect13625839170115664
firstReactRender5834157206091
getState247501010200263785
initialActions203123
loadScripts1162965250025312001447
setupStore2017830232265725
numNetworkReqs926124539100181
WebpackStandard HomeuiStartup15721312215915716441849
load12891111163810413411513
domContentLoaded12881111163210413411512
domInteractive69291453086132
firstPaint------
backgroundConnect51191593353139
firstReactRender26197282636
getState146103131330
initialActions102122
loadScripts1258109216109713161436
setupStore198249301558
numNetworkReqs281887192082
WebpackPower User HomeuiStartup29952125621874330074837
load15071182283541215132658
domContentLoaded15071182283541215122657
domInteractive127301045141112395
firstPaint------
backgroundConnect2022418843001481006
firstReactRender72413454471148
getState318361433276476853
initialActions3049623
loadScripts14251153274129714852010
setupStore108781216294557
numNetworkReqs936329039107171
📊 Page Load Benchmark Results

Current Commit: ed32150 | Date: 12/3/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±39ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 714ms (±36ms) 🟢 | historical mean value: 723ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±11ms) 🟢 | historical mean value: 78ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 39ms 1.01s 1.34s 1.05s 1.34s
domContentLoaded 714ms 36ms 697ms 994ms 736ms 994ms
firstPaint 76ms 11ms 56ms 168ms 84ms 168ms
firstContentfulPaint 76ms 11ms 56ms 168ms 84ms 168ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 4.61 KiB (0.09%)
  • ui: 7 Bytes (0%)
  • common: 835 Bytes (0.01%)

@github-actions github-actions bot added size-XL and removed size-L labels Dec 3, 2025
@stanleyyconsensys stanleyyconsensys force-pushed the chore/add-megaeth-testnet-v2 branch from cf1c6e0 to 3f7d139 Compare December 3, 2025 12:32
@metamaskbot
Copy link
Collaborator

Builds ready [3f7d139]
UI Startup Metrics (1246 ± 112 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12461051154411213271446
load1048881130510211241238
domContentLoaded1042876129110111191233
domInteractive2615143202276
firstPaint4677513133999421202
backgroundConnect21318927914218242
firstReactRender28195173147
getState3715144213987
initialActions106113
loadScripts8356751075979091033
setupStore1272841321
numNetworkReqs2818101231894
BrowserifyPower User HomeuiStartup19941622263920021162377
load97886815951359781325
domContentLoaded96586415871379641315
domInteractive3316181293298
firstPaint5708715983899371290
backgroundConnect254189776129214611
firstReactRender5738105146293
getState19814770576205245
initialActions105112
loadScripts77267113841337651119
setupStore1774262027
numNetworkReqs1526641761201259
WebpackStandard HomeuiStartup816706110272846968
load63356394669645789
domContentLoaded62855594069640784
domInteractive2715199252285
firstPaint21588694145201627
backgroundConnect962641116
firstReactRender2820144133337
getState25134993343
initialActions103111
loadScripts62555293167638773
setupStore1162841219
numNetworkReqs279100231891
WebpackPower User HomeuiStartup15731253238122016092036
load677584114195682905
domContentLoaded668578113595672894
domInteractive36181723132127
firstPaint24392744155255655
backgroundConnect62760714218540
firstReactRender58458876271
getState17813165652183216
initialActions104112
loadScripts665576112593669883
setupStore20649102344
numNetworkReqs1607030060218283
FirefoxBrowserifyStandard HomeuiStartup13341083183715914141678
load108390813839511391249
domContentLoaded108290813839511381249
domInteractive60291652984115
firstPaint------
backgroundConnect52212193964145
firstReactRender24186082545
getState13678141157
initialActions102012
loadScripts105189013698511061208
setupStore175231351039
numNetworkReqs271883173074
BrowserifyPower User HomeuiStartup26222011455254826844340
load1248940271134013112472
domContentLoaded1248940271134013112472
domInteractive11736471100109403
firstPaint------
backgroundConnect178391148238149861
firstReactRender5736141176093
getState26664840207317780
initialActions207123
loadScripts1197900253329212511592
setupStore1258790171119568
numNetworkReqs92602594396208
WebpackStandard HomeuiStartup16131382213415217041913
load1300115515839213641467
domContentLoaded1300115515839213641466
domInteractive66261383184128
firstPaint------
backgroundConnect59193254863167
firstReactRender27207392741
getState2271693414137
initialActions103122
loadScripts1271113815528613241412
setupStore218204311673
numNetworkReqs281888202983
WebpackPower User HomeuiStartup28702153485566228064490
load14731198290140515362605
domContentLoaded14721198290140515352604
domInteractive1073242183108333
firstPaint------
backgroundConnect184291094233159870
firstReactRender6140130176595
getState27866904235418832
initialActions416210339
loadScripts13871175275131214402327
setupStore1347649165153587
numNetworkReqs90632424678221
📊 Page Load Benchmark Results

Current Commit: 3f7d139 | Date: 12/3/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±37ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 722ms (±35ms) 🟢 | historical mean value: 726ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 77ms (±10ms) 🟢 | historical mean value: 79ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 37ms 1.01s 1.31s 1.07s 1.31s
domContentLoaded 722ms 35ms 701ms 981ms 745ms 981ms
firstPaint 77ms 10ms 60ms 164ms 88ms 164ms
firstContentfulPaint 77ms 10ms 60ms 164ms 88ms 164ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 4.61 KiB (0.09%)
  • ui: 7 Bytes (0%)
  • common: 835 Bytes (0.01%)

@metamaskbot
Copy link
Collaborator

Builds ready [433e702]
UI Startup Metrics (1305 ± 122 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup13051065165412213721537
load1076886137810111301266
domContentLoaded1069880136910011251259
domInteractive2916173272395
firstPaint57084130641910361227
backgroundConnect22720327614232255
firstReactRender3121115133263
getState3818169244193
initialActions102112
loadScripts8506721116968971035
setupStore1273151322
numNetworkReqs261892191885
BrowserifyPower User HomeuiStartup19931577256620821542355
load1022890140612610891303
domContentLoaded1009884139712510691290
domInteractive3117137222997
firstPaint4669213383569131084
backgroundConnect274200826138240605
firstReactRender53408595870
getState19214369076196281
initialActions102112
loadScripts80068211261208571062
setupStore16106071636
numNetworkReqs80652472574140
WebpackStandard HomeuiStartup8407131030778801014
load65356987272696802
domContentLoaded64856486571692796
domInteractive2716134232299
firstPaint22289776138208606
backgroundConnect1053151018
firstReactRender27209893136
getState261362123349
initialActions105112
loadScripts64556285570690792
setupStore1053151120
numNetworkReqs261884191881
WebpackPower User HomeuiStartup15921231216425217402101
load68057891585718875
domContentLoaded67257291185711867
domInteractive32171132329102
firstPaint27691885180305690
backgroundConnect85861517120556
firstReactRender59448396476
getState18714266869192233
initialActions104112
loadScripts66957090283708858
setupStore17962111551
numNetworkReqs78651572174146
FirefoxBrowserifyStandard HomeuiStartup12841063182215013761585
load1059909139710611201287
domContentLoaded1058909139710611191287
domInteractive60302803885134
firstPaint------
backgroundConnect39221302041100
firstReactRender23184152334
getState1167281123
initialActions102012
loadScripts1033892136910010951243
setupStore125106131028
numNetworkReqs281886192077
BrowserifyPower User HomeuiStartup31072096498788039994740
load1395978283850213872582
domContentLoaded1395978283850213872582
domInteractive120321028147118309
firstPaint------
backgroundConnect2672615313573161157
firstReactRender59371572164108
getState309831978311363960
initialActions2061623
loadScripts1286962266439412932314
setupStore14851106212121628
numNetworkReqs76511342173124
WebpackStandard HomeuiStartup15311304210016815991901
load1253108515279513171417
domContentLoaded1253108515269513171415
domInteractive67282103584130
firstPaint------
backgroundConnect54162013868157
firstReactRender27197992836
getState13785111323
initialActions103112
loadScripts1224107014588612921386
setupStore166224271186
numNetworkReqs281888202083
WebpackPower User HomeuiStartup33242301566692242465190
load16311106345555617132775
domContentLoaded16301106345555617132775
domInteractive11330123816996298
firstPaint------
backgroundConnect2512612913312721126
firstReactRender67392854064138
getState336751917316530882
initialActions31771023
loadScripts14991088266741115702543
setupStore13861121215153711
numNetworkReqs78601542273130
📊 Page Load Benchmark Results

Current Commit: 433e702 | Date: 12/4/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±38ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 719ms (±35ms) 🟢 | historical mean value: 723ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 77ms (±13ms) 🟢 | historical mean value: 78ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 38ms 1.00s 1.30s 1.06s 1.30s
domContentLoaded 719ms 35ms 692ms 973ms 739ms 973ms
firstPaint 77ms 13ms 60ms 192ms 84ms 192ms
firstContentfulPaint 77ms 13ms 60ms 192ms 84ms 192ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 4.6 KiB (0.09%)
  • ui: 1 Bytes (0%)
  • common: 835 Bytes (0.01%)

@metamaskbot
Copy link
Collaborator

Builds ready [58d9591]
UI Startup Metrics (1273 ± 108 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12731012155910813531457
load106986712959011291224
domContentLoaded106386212908911221217
domInteractive2716110212387
firstPaint59188129443210561217
backgroundConnect22520228612233250
firstReactRender322068113659
getState4017137214794
initialActions109114
loadScripts843664107886890997
setupStore1363561526
numNetworkReqs271898211886
BrowserifyPower User HomeuiStartup20161686270222121782437
load1015898155012910451295
domContentLoaded1003893154012810331286
domInteractive33171912729103
firstPaint5489513153809491174
backgroundConnect272196786140238677
firstReactRender52408085672
getState20114774482208256
initialActions103112
loadScripts79368513391258101064
setupStore1675981637
numNetworkReqs78651572175140
WebpackStandard HomeuiStartup80168798872840971
load62255483269636787
domContentLoaded61854982068631783
domInteractive2515100182185
firstPaint23073786168222633
backgroundConnect952541017
firstReactRender26204453036
getState261358103445
initialActions103111
loadScripts61554781767629773
setupStore1264971329
numNetworkReqs26995211885
WebpackPower User HomeuiStartup15821232227526618212089
load668581116195692847
domContentLoaded660573114694686842
domInteractive32171882629107
firstPaint26183850179257681
backgroundConnect104761319731598
firstReactRender57459396276
getState18214275762185226
initialActions102112
loadScripts658571113893684834
setupStore1695291540
numNetworkReqs79642563273143
FirefoxBrowserifyStandard HomeuiStartup13791099208915914741616
load1128931174111311781305
domContentLoaded1128931174111311771305
domInteractive70321823589135
firstPaint------
backgroundConnect58233625276155
firstReactRender25185672644
getState1267181124
initialActions2031323
loadScripts109191416099811371248
setupStore13690141036
numNetworkReqs271883182677
BrowserifyPower User HomeuiStartup318417546220102841464760
load14451020454759814672636
domContentLoaded14451020454659814672636
domInteractive103331030112104251
firstPaint------
backgroundConnect3033112643803461178
firstReactRender61351492371111
getState285931131240338907
initialActions207123
loadScripts1284971444047313222274
setupStore18071180268187792
numNetworkReqs76501372174125
WebpackStandard HomeuiStartup15971345206816016771936
load1300111815378813481481
domContentLoaded1300111815378813481481
domInteractive73281803290131
firstPaint------
backgroundConnect52221593060118
firstReactRender322182153376
getState197241311559
initialActions102122
loadScripts1269110014998213221414
setupStore2472513915113
numNetworkReqs281885202083
WebpackPower User HomeuiStartup32872286561789941704912
load16781190287754221812777
domContentLoaded16781190287754221812777
domInteractive143311161224108948
firstPaint------
backgroundConnect2232311662942291104
firstReactRender62401612065108
getState301711266262409885
initialActions30397229
loadScripts15581161269843916572553
setupStore12561137204110630
numNetworkReqs77591362172125
📊 Page Load Benchmark Results

Current Commit: 58d9591 | Date: 12/4/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±52ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 723ms (±50ms) 🟢 | historical mean value: 722ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±13ms) 🟢 | historical mean value: 78ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 52ms 1.01s 1.32s 1.10s 1.32s
domContentLoaded 723ms 50ms 699ms 1.01s 781ms 1.01s
firstPaint 76ms 13ms 60ms 184ms 88ms 184ms
firstContentfulPaint 76ms 13ms 60ms 184ms 88ms 184ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 4.6 KiB (0.09%)
  • ui: 1 Bytes (0%)
  • common: 835 Bytes (0.01%)

"swap.api.cx.metamask.io",
"test.metamask-phishing.io",
"testnet-rpc.monad.xyz",
"timothy.megaeth.com",
Copy link
Member

Choose a reason for hiding this comment

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

If this is new RPC then should we remove the previous one(carrot.megaeth.com) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i try to keep the old one and clean up in other PR later, to ensure everything is okay

Copy link
Member

Choose a reason for hiding this comment

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

I would do it in this PR as it introduce the new one and remove the old but I defer this to @MetaMask/extension-privacy-reviewers as they will review this

Copy link
Member

Choose a reason for hiding this comment

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

Agreed that we should remove the old one, but using another PR is fine

Comment on lines 70 to 72
global.sentry?.captureException?.(
new Error(`Migration ${version}: NetworkController not found.`),
);
Copy link
Member

Choose a reason for hiding this comment

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

Minor - should we consider creating a tiny function for repetitive parts?

In e.g

global.sentry?.captureException?.(
      new Error(

Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually i should just use captureException()

Copy link
Member

Choose a reason for hiding this comment

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

What I mean is the creating a function something like below to improve readability of the code.

function captureError(error){
   global.sentry?.captureException?.(
      new Error(error)
    )
}

It's a nit, so up for your preference

"swap.api.cx.metamask.io",
"test.metamask-phishing.io",
"testnet-rpc.monad.xyz",
"timothy.megaeth.com",
Copy link

Choose a reason for hiding this comment

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

Bug: Old RPC endpoint not removed from privacy snapshot

The new v2 MegaETH RPC endpoint timothy.megaeth.com is added, but the old v1 endpoint carrot.megaeth.com (at line 29) remains in the file. Since the migration removes the v1 network configuration and replaces it with v2, the old RPC host should also be removed from the privacy snapshot. This was also flagged by reviewer @OGPoyraz in the PR discussion. Keeping the deprecated endpoint in the allowlist is inconsistent with the migration's intent to fully replace v1 with v2.

Fix in Cursor Fix in Web

Copy link
Member

@OGPoyraz OGPoyraz left a comment

Choose a reason for hiding this comment

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

Confirmation changes LGTM

@metamaskbot
Copy link
Collaborator

Builds ready [9d051fc]
UI Startup Metrics (1254 ± 116 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12541010152111613351454
load104987013009710951226
domContentLoaded104286212949610921219
domInteractive2715175252288
firstPaint5118512714089811190
backgroundConnect21719224913226241
firstReactRender31196793548
getState361783154468
initialActions107113
loadScripts8336581066928751000
setupStore1373151525
numNetworkReqs271894201886
BrowserifyPower User HomeuiStartup20711600254423122202518
load1049916152713410891347
domContentLoaded1038905151813310711338
domInteractive3218114213288
firstPaint5269615434019691253
backgroundConnect303207861175241792
firstReactRender544110295773
getState19715471960203278
initialActions102112
loadScripts82069312951328421130
setupStore16116571628
numNetworkReqs78631622174134
WebpackStandard HomeuiStartup8387021089868851050
load64256289471657801
domContentLoaded63755588771653796
domInteractive271594202289
firstPaint25384893187246655
backgroundConnect115134131025
firstReactRender28205263141
getState2914208203545
initialActions102112
loadScripts63455287969651786
setupStore1262951421
numNetworkReqs26989191880
WebpackPower User HomeuiStartup15621182207925418102047
load6455531246108659879
domContentLoaded6375481239108644870
domInteractive30161342626111
firstPaint28181832184307640
backgroundConnect112759420427573
firstReactRender584289106381
getState18514467055191247
initialActions104112
loadScripts6345461232106642862
setupStore15966101441
numNetworkReqs79642272873155
FirefoxBrowserifyStandard HomeuiStartup13021105178013613961603
load107295313318811301260
domContentLoaded107295313318811291260
domInteractive64312353784141
firstPaint------
backgroundConnect45231793047100
firstReactRender23184962437
getState147204211134
initialActions104112
loadScripts104792913088510921223
setupStore15518625954
numNetworkReqs281885192279
BrowserifyPower User HomeuiStartup31811945490992141444736
load14501025281752814992627
domContentLoaded14491025281652814992627
domInteractive125321072130130323
firstPaint------
backgroundConnect2983312663603991171
firstReactRender67371843275136
getState3028813902942691026
initialActions2033323
loadScripts1297984261738413862534
setupStore116591517798541
numNetworkReqs77571382372126
WebpackStandard HomeuiStartup15821354213815816721880
load1289110815518613281475
domContentLoaded1288110815518613281474
domInteractive69282303485128
firstPaint------
backgroundConnect64203684891135
firstReactRender28217972938
getState197165281589
initialActions102012
loadScripts1256108914597813031414
setupStore195181271575
numNetworkReqs281886202682
WebpackPower User HomeuiStartup32592114652987241314758
load16701137493360921322675
domContentLoaded16691136493360921232675
domInteractive165293423374113498
firstPaint------
backgroundConnect2412714343163151137
firstReactRender64382062565111
getState299831648305269909
initialActions207123
loadScripts15541104491754515842547
setupStore1325828182150585
numNetworkReqs78601282272122
📊 Page Load Benchmark Results

Current Commit: 9d051fc | Date: 12/4/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.06s (±88ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 745ms (±114ms) 🟢 | historical mean value: 724ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 88ms (±95ms) 🟢 | historical mean value: 78ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.06s 88ms 1.03s 1.89s 1.09s 1.89s
domContentLoaded 745ms 114ms 709ms 1.85s 755ms 1.85s
firstPaint 88ms 95ms 64ms 1.03s 88ms 1.03s
firstContentfulPaint 88ms 95ms 64ms 1.03s 88ms 1.03s
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 3.85 KiB (0.07%)
  • ui: 1 Bytes (0%)
  • common: 835 Bytes (0.01%)

Copy link
Member

@seaona seaona left a comment

Choose a reason for hiding this comment

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

QA files LGTM! Nice update on the state-logs 🙏

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.

Privacy snapshot looks OK 👍

@stanleyyconsensys stanleyyconsensys added this pull request to the merge queue Dec 4, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 4, 2025
initialNetworkControllerState.networkConfigurationsByChainId ?? {};

// TODO: Remove this once the MegaETH Testnet v2 is released from the controller utils
networks['0x18c7'] = {
Copy link
Contributor

@mcmire mcmire Dec 4, 2025

Choose a reason for hiding this comment

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

What if someone already has this chain added? Do we need to only add this if the chain is not present? (If the chain is already present, then the migration should take care of fixing it.) Is this something to be concerned about?


const megaethTestnetV1Configuration = networkConfigurationsByChainId[
MEGAETH_TESTNET_V1_CHAIN_ID
] as unknown as NetworkConfiguration;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we using a type assertion here? What if this chain is not present?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is okay,
as we have a check on below

megaethTestnetV1Configuration &&
    isObject(megaethTestnetV1Configuration) &&
    hasProperty(megaethTestnetV1Configuration, 'rpcEndpoints') &&
    Array.isArray(megaethTestnetV1Configuration.rpcEndpoints) &&
    ```

] as unknown as NetworkConfiguration;

// Add the MegaETH Testnet v2 network configuration.
networkConfigurationsByChainId[MEGAETH_TESTNET_V2_CONFIG.chainId] =
Copy link
Contributor

Choose a reason for hiding this comment

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

If the user already has this chain, wouldn't we be overriding it completely?

Copy link
Contributor Author

@stanleyyconsensys stanleyyconsensys Dec 5, 2025

Choose a reason for hiding this comment

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

yes, we try to override it with our config, thats what we want as well

// Add the MegaETH Testnet v2 network configuration to the enabled network map.
eip155NetworkMap[MEGAETH_TESTNET_V2_CONFIG.chainId] = false;

// If the selected network client id is the old MegaETH Testnet v1,
Copy link
Contributor

@mcmire mcmire Dec 4, 2025

Choose a reason for hiding this comment

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

Nit: Why not update it to the new chain? We could look up the default RPC endpoint under the new chain in networkConfigurationsByChainId and then set selectedNetworkClientId to its networkClientId.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we found that it may more reliable to update to mainnet in that case

chainId: '0x18c7', // 6343
name: 'MegaETH Testnet',
nativeCurrency: 'MegaETH',
blockExplorerUrls: ['https://megaeth-testnet-v2.blockscout.com'],
Copy link
Contributor

@mcmire mcmire Dec 4, 2025

Choose a reason for hiding this comment

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

Nit: Isn't this information already available in shared/constants/network.ts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good call, but this is for temp and removed soon once network controller bump up, i think we can keep it like that if u dont mind?

@stanleyyconsensys stanleyyconsensys added this pull request to the merge queue Dec 5, 2025
Merged via the queue into main with commit d058e75 Dec 5, 2025
335 of 338 checks passed
@stanleyyconsensys stanleyyconsensys deleted the chore/add-megaeth-testnet-v2 branch December 5, 2025 00:40
@github-actions github-actions bot locked and limited conversation to collaborators Dec 5, 2025
@metamaskbot metamaskbot added the release-13.13.0 Issue or pull request that will be included in release 13.13.0 label Dec 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.13.0 Issue or pull request that will be included in release 13.13.0 size-L team-network-enablement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants