Skip to content

Commit 6541697

Browse files
authored
TokenRatesController: providerConfig -> selectedNetworkClientId (#4317)
The `providerConfig` state property is being removed from NetworkController. Currently this property is used in TokenRatesController to get the currently selected chain and ticker, but `selectedNetworkClientId` can be used instead to get the currently selected network client, and then the appropriate information can be read from that object. This commit makes that transition so that we can fully drop `providerConfig`.
1 parent c2d58c9 commit 6541697

File tree

3 files changed

+216
-90
lines changed

3 files changed

+216
-90
lines changed

packages/assets-controllers/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
- This should be functionally equivalent, but is being noted anyway.
1515
- NftDetectionController now makes use of `selectedNetworkClientId` when responding to changes in NetworkController state to capture the currently selected chain rather than `providerConfig` ([#4307](https://github.com/MetaMask/core/pull/4307))
1616
- This should be functionally equivalent, but is being noted anyway.
17+
- TokenRatesController now makes use of `selectedNetworkClientId` when responding to changes in NetworkController state to capture the currently selected chain rather than `providerConfig` ([#4317](https://github.com/MetaMask/core/pull/4317))
18+
- This should be functionally equivalent, but is being noted anyway.
1719

1820
## [29.0.0]
1921

0 commit comments

Comments
 (0)