diff --git a/src/KeyringController.ts b/src/KeyringController.ts index 195b045b..45648544 100644 --- a/src/KeyringController.ts +++ b/src/KeyringController.ts @@ -7,7 +7,6 @@ import { remove0x, isValidHexAddress } from '@metamask/utils'; import type { Hex, Json, - Bytes, Keyring, KeyringClass, Eip1024EncryptedData, @@ -467,7 +466,7 @@ class KeyringController extends EventEmitter { async getEncryptionPublicKey( address: string, opts: Record = {}, - ): Promise { + ): Promise { const normalizedAddress = normalizeToHex(address) as Hex; const keyring = await this.getKeyringForAccount(address); if (!keyring.getEncryptionPublicKey) { @@ -490,7 +489,7 @@ class KeyringController extends EventEmitter { async decryptMessage(msgParams: { from: string; data: Eip1024EncryptedData; - }): Promise { + }): Promise { const address = normalizeToHex(msgParams.from) as Hex; const keyring = await this.getKeyringForAccount(address); if (!keyring.decryptMessage) { @@ -516,7 +515,7 @@ class KeyringController extends EventEmitter { data: Record[]; }, opts: Record = { version: 'V1' }, - ): Promise { + ): Promise { // Cast to `Hex` here is safe here because `msgParams.from` is not nullish. // `normalizeToHex` returns `Hex` unless given a nullish value. const address = normalizeToHex(msgParams.from) as Hex;