diff --git a/packages/assets-controllers/src/AccountTrackerController.ts b/packages/assets-controllers/src/AccountTrackerController.ts index 63f37fc9aae..3020b41c7fa 100644 --- a/packages/assets-controllers/src/AccountTrackerController.ts +++ b/packages/assets-controllers/src/AccountTrackerController.ts @@ -5,10 +5,10 @@ import type { Provider } from '@metamask/eth-query'; import type { NetworkClientId, NetworkController, - NetworkState, } from '@metamask/network-controller'; import { StaticIntervalPollingControllerV1 } from '@metamask/polling-controller'; import type { PreferencesState } from '@metamask/preferences-controller'; +import type { Hex } from '@metamask/utils'; import { assert } from '@metamask/utils'; import { Mutex } from 'async-mutex'; import { cloneDeep } from 'lodash'; @@ -120,7 +120,7 @@ export class AccountTrackerController extends StaticIntervalPollingControllerV1< private readonly getMultiAccountBalancesEnabled: () => PreferencesState['isMultiAccountBalancesEnabled']; - private readonly getCurrentChainId: () => NetworkState['providerConfig']['chainId']; + private readonly getCurrentChainId: () => Hex; private readonly getNetworkClientById: NetworkController['getNetworkClientById']; @@ -152,7 +152,7 @@ export class AccountTrackerController extends StaticIntervalPollingControllerV1< getIdentities: () => PreferencesState['identities']; getSelectedAddress: () => PreferencesState['selectedAddress']; getMultiAccountBalancesEnabled: () => PreferencesState['isMultiAccountBalancesEnabled']; - getCurrentChainId: () => NetworkState['providerConfig']['chainId']; + getCurrentChainId: () => Hex; getNetworkClientById: NetworkController['getNetworkClientById']; }, config?: Partial,