Skip to content

Commit 0e8df7b

Browse files
authored
Merge branch 'main' into feat/move-multichain-account-impl
2 parents 0bf4077 + 6fdc35e commit 0e8df7b

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

packages/assets-controllers/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Use a narrow selector when listening to `CurrencyRateController:stateChange` ([#6217](https://github.com/MetaMask/core/pull/6217))
13+
1014
## [73.0.1]
1115

1216
### Changed

packages/assets-controllers/src/MultichainAssetsRatesController/MultichainAssetsRatesController.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,12 @@ export class MultichainAssetsRatesController extends StaticIntervalPollingContro
236236

237237
this.messagingSystem.subscribe(
238238
'CurrencyRateController:stateChange',
239-
async (currencyRatesState: CurrencyRateState) => {
240-
this.#currentCurrency = currencyRatesState.currentCurrency;
239+
async (currentCurrency: string) => {
240+
this.#currentCurrency = currentCurrency;
241241
await this.updateAssetsRates();
242242
},
243+
(currencyRateControllerState) =>
244+
currencyRateControllerState.currentCurrency,
243245
);
244246

245247
this.messagingSystem.subscribe(

0 commit comments

Comments
 (0)