fix(client-utils): native assetId via slip44 lookup - #9701
Merged
Conversation
n3ps
marked this pull request as ready for review
July 29, 2026 21:13
n3ps
added a commit
that referenced
this pull request
Jul 29, 2026
Use ^4.3.0 to match network-enablement-controller monorepo constraint. Document the new dependency and link Unreleased entries to #9701. Co-authored-by: Cursor <cursoragent@cursor.com>
n3ps
commented
Jul 29, 2026
| direction: 'out', | ||
| symbol: 'MATIC', | ||
| assetType: 'native', | ||
| assetId: 'eip155:137/slip44:966', |
Contributor
Author
There was a problem hiding this comment.
assetId for native tokens
n3ps
commented
Jul 29, 2026
| direction: 'in', | ||
| symbol: 'ETH', | ||
| assetType: 'native', | ||
| assetId: 'eip155:59144/slip44:60', |
Contributor
Author
There was a problem hiding this comment.
assetId for native tokens
n3ps
enabled auto-merge
July 29, 2026 21:21
After #9671 removed the hardcoded nativeAssetsByCaipChainId registry, native activity rows lost slip44 assetId when a symbol was already present in the payload. Restore symbol-driven lookup via @metamask/slip44 without reintroducing chain-to-symbol tables or inventing metadata. - Resolve native token and fee assetId from transfer/group symbol when available - Build a module-level slip44 symbol map for O(1) lookups (POL aliases MATIC) - formatAddressToAssetId still returns undefined for native sentinel addresses
n3ps
force-pushed
the
n3ps/client-utils-slip44
branch
from
July 29, 2026 21:24
5d967c8 to
f6ded61
Compare
vinnyhoward
approved these changes
Jul 29, 2026
pull Bot
pushed a commit
to Reality2byte/core
that referenced
this pull request
Jul 30, 2026
## Explanation Releases `@metamask/client-utils@1.5.0`. Restores native `assetId` on activity tokens and network fees when available. ## References - Follow-up release for [MetaMask#9701](MetaMask#9701) - Replaces closed [MetaMask#9703](MetaMask#9703) (auto-closed after 3hr inactivity window) ## Checklist - [ ] I've updated the test suite for new or updated code as appropriate - [x] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [x] I've communicated my changes to consumers by [updating changelogs for packages I've changed](https://github.com/MetaMask/core/tree/main/docs/processes/updating-changelogs.md) - [ ] I've introduced [breaking changes](https://github.com/MetaMask/core/processes/breaking-changes.md) in this PR and have prepared draft pull requests for clients and consumer packages to resolve them Made with [Cursor](https://cursor.com)
4 tasks
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Explanation
After #9671 removed the hardcoded nativeAssetsByCaipChainId list, clients are left to resolve native tokens for certain activity types where the API has not provided metadata.
This PR restores native
assetIds using the@metamask/slip44package.References
@metamask/client-utilsafter publishChecklist
Made with Cursor