From 9db5e29d04e7fcfe096b542a6bac5832065e0527 Mon Sep 17 00:00:00 2001 From: Charly Chevalier Date: Mon, 14 Sep 2026 10:51:27 +0200 Subject: [PATCH] fix(keyring-controller): fix preview build (unused typecast) --- packages/keyring-controller/src/KeyringController.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/keyring-controller/src/KeyringController.ts b/packages/keyring-controller/src/KeyringController.ts index 10b063ecb8..a015edf877 100644 --- a/packages/keyring-controller/src/KeyringController.ts +++ b/packages/keyring-controller/src/KeyringController.ts @@ -641,12 +641,8 @@ const hdKeyringV2Builder: KeyringV2Builder = Object.assign( const simpleKeyringV2Builder: KeyringV2Builder = Object.assign( (keyring: Keyring): KeyringV2 => new SimpleKeyringV2({ - // @ts-expect-error TODO: `Keyring` here comes from `@metamask/keyring-utils`, - // which still depends on `@metamask/utils@^11`, while this package now - // depends on the workspace copy at v12. That leaves two distinct identities - // for the same type, so the cast no longer overlaps. Remove this once the - // keyring packages depend on v12. - legacyKeyring: keyring as SimpleKeyring, + // TODO: Remove this cast once `@metamask/utils` is re-aligned on `accounts` repository. + legacyKeyring: keyring as unknown as ConstructorParameters[0]['legacyKeyring'], }), { type: KeyringTypes.simple as string }, );