fix: inconsistent decimals between all and selected network#40341
Merged
Conversation
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. |
Contributor
✨ Files requiring CODEOWNER review ✨👨🔧 @MetaMask/core-extension-ux (1 files, +1 -3)
|
Contributor
Builds ready [b70bf1c]
⚡ Performance Benchmarks (1385 ± 100 ms)
🌐 Dapp Page Load BenchmarksCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs
|
AndyMBridges
approved these changes
Feb 24, 2026
ameliejyc
approved these changes
Feb 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fix the inconsistent decimal handling of non EVM transactions when choosing between All Networks and the selected network
Changelog
CHANGELOG entry: fix: inconsistent decimals between and and selected network
Related issues
Fixes: #40242
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Small, localized change to transaction amount formatting and a hook signature; main risk is display regressions for chains where
transaction.chaindoesn’t map toMULTICHAIN_NETWORK_DECIMAL_PLACES.Overview
Fixes inconsistent decimal formatting for non-EVM/multichain transactions by making
useMultichainTransactionDisplayderivedecimalPlacesfromtransaction.chaininstead of the currently selected network.Updates call sites (e.g.,
MultichainTransactionDetailsModalandNonEvmActivityListItem) to stop selecting/passinggetSelectedMultichainNetworkConfiguration, 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.