Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding committed Oct 16, 2024
1 parent 0890cb2 commit 8ef7b25
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export class SelectedNetworkController extends BaseController<
networkClientId,
);

// This needs to happen before getProviderAndBlockTracker,
// This needs to happen before getProviderAndBlockTracker,
// otherwise we may be referencing a network client ID that no longer exists.
this.update((state) => {
state.domains[domain] = networkClientId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,12 @@ describe('SelectedNetworkController', () => {

it('redirects domains to the globally selected network when useRequestQueuePreference is true and handles garbage collected proxies', () => {
const domainProxyMap = new Map();
const { controller, messenger, mockNetworkControllerGetState, mockGetNetworkClientById } = setup({
const {
controller,
messenger,
mockNetworkControllerGetState,
mockGetNetworkClientById,
} = setup({
state: { domains: initialDomains },
useRequestQueuePreference: true,
domainProxyMap,
Expand All @@ -389,8 +394,8 @@ describe('SelectedNetworkController', () => {
return {
provider: { request: jest.fn() },
blockTracker: { getLatestBlock: jest.fn() },
}
})
};
});

deleteNetwork(
'0x5',
Expand Down

0 comments on commit 8ef7b25

Please sign in to comment.