Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AccountTrackerController: Remove ref to providerConfig #4306

Merged
merged 9 commits into from
Jun 4, 2024
6 changes: 3 additions & 3 deletions packages/assets-controllers/src/AccountTrackerController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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'];

Expand Down Expand Up @@ -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<AccountTrackerConfig>,
Expand Down
Loading