Commit 1a13e37
authored
chore: bump assets controller to v7.2.1 (#30067)
## **Description**
Bumps `@metamask/assets-controllers` from v7.0.0 to v7.2.1 to pick up
the latest bug fixes and improvements from the upstream package.
## **Changelog**
CHANGELOG entry: bump assets controller to v7.2.1
## **Related issues**
Fixes: N/A
## **Manual testing steps**
```gherkin
Feature: Assets display
Scenario: user views their token balances
Given the user has tokens on one or more networks
When user opens the wallet
Then token balances and asset info are displayed correctly
```
## **Screenshots/Recordings**
N/A — dependency bump with no UI changes.
### **Before**
N/A
### **After**
N/A
## **Pre-merge author checklist**
- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I've included tests if applicable
- [x] I've documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I've applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
#### Performance checks (if applicable)
- [ ] I've tested on Android
- [ ] I've tested with a power user scenario
- [ ] I've instrumented key operations with Sentry traces for production
performance metrics
## **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]
> **Medium Risk**
> Dependency bump to a new major version of
`@metamask/assets-controller` and updates to the AssetsController
messenger event surface could affect asset updates on network add/remove
flows.
>
> **Overview**
> Updates the app to use `@metamask/assets-controller` `^7.1.2` (from
`^6.2.1`), with corresponding `yarn.lock` changes.
>
> Aligns the AssetsController messenger typing and delegation to include
the new `NetworkController:networkAdded` and
`NetworkController:networkRemoved` events, and updates the associated
unit test expectations.
>
> Adjusts the test `initial-background-state.json` asset identifiers to
use checksummed token addresses in the `AssetsController.assetsInfo`
keys.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
a6f2b98. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 825cbe0 commit 1a13e37
5 files changed
Lines changed: 20 additions & 12 deletions
File tree
- app
- core/Engine/messengers/assets-controller
- util/test
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
84 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
| |||
134 | 138 | | |
135 | 139 | | |
136 | 140 | | |
| 141 | + | |
| 142 | + | |
137 | 143 | | |
138 | 144 | | |
139 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
482 | | - | |
| 482 | + | |
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
488 | | - | |
| 488 | + | |
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
494 | | - | |
| 494 | + | |
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
| 246 | + | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7648 | 7648 | | |
7649 | 7649 | | |
7650 | 7650 | | |
7651 | | - | |
| 7651 | + | |
7652 | 7652 | | |
7653 | 7653 | | |
7654 | 7654 | | |
| |||
8975 | 8975 | | |
8976 | 8976 | | |
8977 | 8977 | | |
8978 | | - | |
8979 | | - | |
| 8978 | + | |
| 8979 | + | |
8980 | 8980 | | |
8981 | 8981 | | |
8982 | 8982 | | |
8983 | 8983 | | |
8984 | | - | |
| 8984 | + | |
8985 | 8985 | | |
8986 | 8986 | | |
8987 | 8987 | | |
8988 | 8988 | | |
8989 | 8989 | | |
8990 | 8990 | | |
8991 | | - | |
| 8991 | + | |
8992 | 8992 | | |
8993 | 8993 | | |
8994 | 8994 | | |
| |||
9056 | 9056 | | |
9057 | 9057 | | |
9058 | 9058 | | |
9059 | | - | |
| 9059 | + | |
9060 | 9060 | | |
9061 | 9061 | | |
9062 | 9062 | | |
| |||
35324 | 35324 | | |
35325 | 35325 | | |
35326 | 35326 | | |
35327 | | - | |
| 35327 | + | |
35328 | 35328 | | |
35329 | 35329 | | |
35330 | 35330 | | |
| |||
0 commit comments