… core client-utils cp-13.42.0 (#45006)
<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->
## **Description**
<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->
With issue #44993,
some token icons wouldn't appear for native sends. Ex: Monad, MegaETH.
Also on those networks, the corresponding activity entry would be
missing from the Token Page.
The issue came from missing slip44 entries in this file:
https://github.com/MetaMask/core/pull/9671/changes#diff-4d2d5a10eba039c36f21ec53cb573ad609cf4854cb1de5067a174d0140ace0dcL24-L35
(or the fact that existing slip44 entries could have been used instead)
The code with the missing entries is being removed/refactored. However
in the meantime the issue remains on the release/13.42.0 branch.
Solution: A patch to add the missing entries for cherry-picking on this
RC.
## **Changelog**
<!--
If this PR is not End-User-Facing and should not show up in the
CHANGELOG, you can choose to either:
1. Write `CHANGELOG entry: null`
2. Label with `no-changelog`
If this PR is End-User-Facing, please write a short User-Facing
description in the past tense like:
`CHANGELOG entry: Added a new tab for users to see their NFTs`
`CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker`
(This helps the Release Engineer do their job more quickly and
accurately)
-->
CHANGELOG entry: [patch for missing slip44 entries in core
client-utils](d7e1645)
## **Related issues**
Fixes: #44993
## **Manual testing steps**
1. From Monad and MegaETH, perform a native send (`MON` for Monad, `ETH`
for MegaETH).
2. Check the resulting Activity items:
- Before: No icon + no item from MON/ETH token page
- After: Icon appears and activity item visible from both general
activity tab and token page
## **Screenshots/Recordings**
<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->
### **Before**
<!-- [screenshots/recordings] -->
### **After**
<!-- [screenshots/recordings] -->
## **Pre-merge author checklist**
- [ ] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/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-extension/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]
> **Low Risk**
> Scoped dependency metadata patch for native asset mapping; no auth or
transaction logic changes, though incorrect slip44 values could affect
icon/activity display on those chains.
>
> **Overview**
> Adds a **Yarn patch** on `@metamask/client-utils@1.2.0` so
`nativeAssetsByCaipChainId` in the CAIP helpers includes **slip44** (and
symbol/decimals) for several EVM chains that were missing from the
published package—**Monad** (`eip155:143`), **Hyperliquid**
(`eip155:999`), and additional chain IDs **4326**, **4663**, and
**5042**.
>
> `package.json` and `yarn.lock` now resolve `@metamask/client-utils`
through that patch instead of the plain npm version. This is a
**short-term RC fix** for missing native token icons and absent
token-page activity on native sends until the upstream core change
lands.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
e7a842e. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Description
With issue #44993,
some token icons wouldn't appear for native sends. Ex: Monad, MegaETH.
Also on those networks, the corresponding activity entry would be
missing from the Token Page.
The issue came from missing slip44 entries in this file:
https://github.com/MetaMask/core/pull/9671/changes#diff-4d2d5a10eba039c36f21ec53cb573ad609cf4854cb1de5067a174d0140ace0dcL24-L35
(or the fact that existing slip44 entries could have been used instead)
The code with the missing entries is being removed/refactored. However
in the meantime the issue remains on the release/13.42.0 branch.
Solution: A patch to add the missing entries for cherry-picking on this
RC.
Changelog
CHANGELOG entry: patch for missing slip44 entries in core
client-utils
Related issues
Fixes: #44993
Manual testing steps
MONfor Monad,ETHfor MegaETH).
activity tab and token page
Screenshots/Recordings
Before
After
Pre-merge author checklist
Docs and MetaMask
Extension Coding
Standards.
if applicable
guidelines).
Not required for external contributors.
Pre-merge reviewer checklist
app, test code being changed).
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
Note
Low Risk
Scoped dependency metadata patch for native asset mapping; no auth or
transaction logic changes, though incorrect slip44 values could affect
icon/activity display on those chains.
Overview
Adds a Yarn patch on
@metamask/client-utils@1.2.0sonativeAssetsByCaipChainIdin the CAIP helpers includes slip44 (andsymbol/decimals) for several EVM chains that were missing from the
published package—Monad (
eip155:143), Hyperliquid(
eip155:999), and additional chain IDs 4326, 4663, and5042.
package.jsonandyarn.locknow resolve@metamask/client-utilsthrough that patch instead of the plain npm version. This is a
short-term RC fix for missing native token icons and absent
token-page activity on native sends until the upstream core change
lands.
Reviewed by Cursor Bugbot for commit
e7a842e. Bugbot is set up for automated
code reviews on this repo. Configure
here.