Skip to content

Commit 178169c

Browse files
committed
chore: update DeserializableHDKeyringState type
1 parent fa5cf4e commit 178169c

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

packages/keyring-eth-hd/src/hd-keyring.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,6 @@ describe('hd-keyring', () => {
299299
// Invalid mnemonic as raw Buffer
300300
await expect(
301301
keyring.deserialize({
302-
// @ts-expect-error testing Buffer mnemonic directly
303302
mnemonic: Buffer.from('invalid mnemonic phrase here', 'utf8'),
304303
numberOfAccounts: 1,
305304
}),
@@ -312,7 +311,6 @@ describe('hd-keyring', () => {
312311
const keyring = new HdKeyring();
313312

314313
await keyring.deserialize({
315-
// @ts-expect-error testing Buffer mnemonic directly
316314
mnemonic: Buffer.from(sampleMnemonic, 'utf8'),
317315
numberOfAccounts: 1,
318316
});
@@ -331,7 +329,6 @@ describe('hd-keyring', () => {
331329
assert(mnemonic, 'Mnemonic should be defined');
332330

333331
await keyring.deserialize({
334-
// @ts-expect-error testing Uint8Array mnemonic directly
335332
mnemonic,
336333
numberOfAccounts: 1,
337334
});

packages/keyring-eth-hd/src/hd-keyring.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export type DeserializableHDKeyringState = Omit<
6969
SerializedHDKeyringState,
7070
'mnemonic'
7171
> & {
72-
mnemonic: number[] | SerializedBuffer | string;
72+
mnemonic: Mnemonic;
7373
};
7474

7575
/**

0 commit comments

Comments
 (0)