Skip to content

fix: inconsistent decimals between all and selected network#40341

Merged
n3ps merged 2 commits intomainfrom
n3ps/legacy-txn-decimal
Feb 24, 2026
Merged

fix: inconsistent decimals between all and selected network#40341
n3ps merged 2 commits intomainfrom
n3ps/legacy-txn-decimal

Conversation

@n3ps
Copy link
Contributor

@n3ps n3ps commented Feb 23, 2026

Description

Fix the inconsistent decimal handling of non EVM transactions when choosing between All Networks and the selected network

Open in GitHub Codespaces

Changelog

CHANGELOG entry: fix: inconsistent decimals between and and selected network

Related issues

Fixes: #40242

Manual testing steps

  1. Select Solana network
  2. Send amount with several decimals, in Solana network and confirm
  3. Go to Activity
  4. See tx with decimals
  5. Select All popular network
  6. See tx decimals are different

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.

Note

Low Risk
Small, localized change to transaction amount formatting and a hook signature; main risk is display regressions for chains where transaction.chain doesn’t map to MULTICHAIN_NETWORK_DECIMAL_PLACES.

Overview
Fixes inconsistent decimal formatting for non-EVM/multichain transactions by making useMultichainTransactionDisplay derive decimalPlaces from transaction.chain instead of the currently selected network.

Updates call sites (e.g., MultichainTransactionDetailsModal and NonEvmActivityListItem) to stop selecting/passing getSelectedMultichainNetworkConfiguration, simplifying the API and ensuring amounts render consistently when switching between All Networks and a specific network.

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

@n3ps n3ps requested a review from a team as a code owner February 23, 2026 19:24
@n3ps n3ps added the team-core-extension-ux Core Extension UX team label Feb 23, 2026
@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.

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Feb 23, 2026

✨ Files requiring CODEOWNER review ✨

👨‍🔧 @MetaMask/core-extension-ux (1 files, +1 -3)
  • 📁 ui/
    • 📁 components/
      • 📁 multichain/
        • 📁 activity-v2/
          • 📄 non-evm-activity-list-item.tsx +1 -3

@n3ps n3ps enabled auto-merge February 23, 2026 19:28
@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Feb 23, 2026

Builds ready [b70bf1c]
⚡ Performance Benchmarks (1385 ± 100 ms)
👆 Interaction Benchmarks
ActionMetricMean (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account2752277277
total2752277277
Confirm Txconfirm_tx60361260476049
total60361260476049
Bridge User Actionsbridge_load_page26622279294
bridge_load_asset_picker17034194203
bridge_search_token6983698702
total11214611561194
🔌 Startup Benchmarks
BuildMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
Chrome Browserify Startup Standard HomeuiStartup13851182172610014151560
load117097613948912101336
domContentLoaded116397113898712041322
domInteractive261692172375
firstPaint197661287213218328
backgroundConnect20318725612207225
firstReactRender18113751927
initialActions105113
loadScripts97578311968710161136
setupStore1465571625
numNetworkReqs312297202285
Chrome Browserify Startup Power User HomeuiStartup18161317856577817272296
load1111996162612611081411
domContentLoaded1095987159511810871382
domInteractive3118149183155
firstPaint189721605209228303
backgroundConnect3862416700685287368
firstReactRender24144572738
initialActions107112
loadScripts89778813731168861191
setupStore1775891835
numNetworkReqs60371492367123
Chrome Webpack Startup Standard HomeuiStartup8316901247928491011
load713607110692754877
domContentLoaded707603109590748873
domInteractive2715122232286
firstPaint11958850105124227
backgroundConnect27194963139
firstReactRender19124072132
initialActions104112
loadScripts704601108689746867
setupStore1163851219
numNetworkReqs3122104212588
Chrome Webpack Startup Power User HomeuiStartup1270913227920213301608
load74365313051257301061
domContentLoaded73264012971257161047
domInteractive40191763139122
firstPaint1486764591158312
backgroundConnect18513294493171300
firstReactRender23174042529
initialActions102111
loadScripts72963712871227141034
setupStore1353751422
numNetworkReqs1144026451141243
Firefox Browserify Startup Standard HomeuiStartup16491407238723016692282
load13841176210119014151764
domContentLoaded13831175209619014151763
domInteractive74342734193148
firstPaint------
backgroundConnect57261622360113
firstReactRender14112021517
initialActions102112
loadScripts13561150207118413861683
setupStore187132221633
numNetworkReqs321997212794
Firefox Browserify Startup Power User HomeuiStartup27632073670754528453396
load16191256516644416322106
domContentLoaded16181248516644516312105
domInteractive139381682192115450
firstPaint------
backgroundConnect237105880177220723
firstReactRender19146681927
initialActions213122
loadScripts15811238512543615862044
setupStore1228711162138499
numNetworkReqs60281453378130
Firefox Webpack Startup Standard HomeuiStartup17141403321525317322048
load14511181289122814751631
domContentLoaded14501181289122814711630
domInteractive912930949130168
firstPaint------
backgroundConnect61272513860141
firstReactRender15122831625
initialActions102112
loadScripts14251169287122714441574
setupStore227162262061
numNetworkReqs311989182783
Firefox Webpack Startup Power User HomeuiStartup26891973377939727943601
load15811302246626916592254
domContentLoaded15801302246626916592254
domInteractive12335690128108474
firstPaint------
backgroundConnect2411101221180231589
firstReactRender22166872328
initialActions213122
loadScripts15381272244323916142055
setupStore1819731211256662
numNetworkReqs59271783591121
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2182219220
srpButtonToSrpForm9629898
confirmSrpToPwForm2312425
pwFormToMetricsScreen1701718
metricsToWalletReadyScreen1711819
doneButtonToHomeScreen100025011301434
openAccountMenuToAccountListLoaded737442576667731
total88672789058905
Onboarding New WalletcreateWalletToSocialScreen2171218219
srpButtonToPwForm1041104105
createPwToRecoveryScreen8088
skipBackupToMetricsScreen3413434
agreeButtonToOnboardingSuccess1611617
doneButtonToAssetList83433911461329
total121834015291718
Asset DetailsassetClickToPriceChart4244548
total4244548
Solana Asset DetailsassetClickToPriceChart4834953
total4834953
Import Srp HomeloginToHomeScreen20966121302162
openAccountMenuAfterLogin4724850
homeAfterImportWithNewWallet26783626832725
total491015249545173
Send TransactionsopenSendPageFromHome1811819
selectTokenToSendFormLoaded1912021
reviewTransactionToConfirmationPage8647869873
total8997902907
SwapopenSwapPageFromHome1136119119
fetchAndDisplaySwapQuotes533287263766419
total544488664816574
🌐 Dapp Page Load Benchmarks

Current Commit: b70bf1c | Date: 2/23/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±38ms) 🟡 | historical mean value: 1.06s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 721ms (±36ms) 🟢 | historical mean value: 736ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 75ms (±10ms) 🟢 | historical mean value: 80ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 38ms 1.01s 1.32s 1.06s 1.32s
domContentLoaded 721ms 36ms 700ms 990ms 740ms 990ms
firstPaint 75ms 10ms 60ms 152ms 84ms 152ms
firstContentfulPaint 75ms 10ms 60ms 152ms 84ms 152ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs
  • background: 58 Bytes (0%)
  • ui: -238 Bytes (0%)
  • common: 20 Bytes (0%)

@n3ps n3ps added this pull request to the merge queue Feb 24, 2026
Merged via the queue into main with commit a4307a0 Feb 24, 2026
177 checks passed
@n3ps n3ps deleted the n3ps/legacy-txn-decimal branch February 24, 2026 14:06
@github-actions github-actions bot locked and limited conversation to collaborators Feb 24, 2026
@metamaskbot metamaskbot added the release-13.21.0 Issue or pull request that will be included in release 13.21.0 label Feb 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.21.0 Issue or pull request that will be included in release 13.21.0 size-S team-core-extension-ux Core Extension UX team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Activity - Different decimals are displayed for the same transaction depending on if my network selected is All popular networks, or a single one

4 participants