You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A recent change to update TokenRatesController from the CoinGecko API to
our own API added code which refers to "token contract addresses". While
this is a more accurate name for the hexadecimal string you can use to
refer to a token, we consistently use the name "token address" in the
code rather than "token contract address", so update these references to
be consistent with existing code.
Copy file name to clipboardexpand all lines: packages/assets-controllers/CHANGELOG.md
+4-5
Original file line number
Diff line number
Diff line change
@@ -12,11 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
12
12
### Changed
13
13
-**BREAKING:** TokenRatesController now takes a required argument `tokenPricesService` ([#3600](https://github.com/MetaMask/core/pull/3600))
14
14
- This object is responsible for fetching the prices for tokens held by this controller.
15
-
-**BREAKING:** Update signature of `TokenRatesController.updateExchangeRatesByChainId` ([#3600](https://github.com/MetaMask/core/pull/3600))
16
-
- Rename `tokenAddresses` argument to `tokenContractAddresses`
17
-
- Change the type of `tokenContractAddresses` from `string[]` to `Hex[]`
18
-
-**BREAKING:** Change signature of `TokenRatesController.fetchAndMapExchangeRates` ([#3600](https://github.com/MetaMask/core/pull/3600))
19
-
- This method now takes an object with shape `{ tokenContractAddresses: Hex[]; chainId: Hex; nativeCurrency: string; }` rather than positional arguments
15
+
-**BREAKING:** Update signature of `TokenRatesController.updateExchangeRatesByChainId` ([#3600](https://github.com/MetaMask/core/pull/3600), [#3653](https://github.com/MetaMask/core/pull/3653))
16
+
- Change the type of `tokenAddresses` from `string[]` to `Hex[]`
17
+
-**BREAKING:** Change signature of `TokenRatesController.fetchAndMapExchangeRates` ([#3600](https://github.com/MetaMask/core/pull/3600), [#3653](https://github.com/MetaMask/core/pull/3653))
18
+
- This method now takes an object with shape `{ tokenAddresses: Hex[]; chainId: Hex; nativeCurrency: string; }` rather than positional arguments
20
19
- Update TokenListController to fetch prefiltered set of tokens from the API, reducing response data and removing the need for filtering logic ([#2054](https://github.com/MetaMask/core/pull/2054))
0 commit comments