We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
KeyringController:getState
1 parent 284c976 commit 2acc5a1Copy full SHA for 2acc5a1
1 file changed
packages/assets-controllers/src/TokenDetectionController.test.ts
@@ -6,6 +6,7 @@ import {
6
convertHexToDecimal,
7
BUILT_IN_NETWORKS,
8
} from '@metamask/controller-utils';
9
+import type { KeyringControllerState } from '@metamask/keyring-controller';
10
import {
11
defaultState as defaultNetworkState,
12
type NetworkConfiguration,
@@ -1303,9 +1304,9 @@ async function withController<ReturnValue>(
1303
1304
});
1305
controllerMessenger.registerActionHandler(
1306
'KeyringController:getState',
- jest.fn().mockReturnValue({
1307
- isActive: true,
1308
- }),
+ jest.fn<KeyringControllerState, []>().mockReturnValue({
+ isUnlocked: true,
1309
+ } as unknown as KeyringControllerState),
1310
);
1311
1312
'NetworkController:getNetworkConfigurationByNetworkClientId',
0 commit comments