Skip to content

Commit 5075bae

Browse files
committed
Revert "chore: update DeserializableHDKeyringState type"
This reverts commit 178169c.
1 parent 178169c commit 5075bae

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

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

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

313314
await keyring.deserialize({
315+
// @ts-expect-error testing Buffer mnemonic directly
314316
mnemonic: Buffer.from(sampleMnemonic, 'utf8'),
315317
numberOfAccounts: 1,
316318
});
@@ -329,6 +331,7 @@ describe('hd-keyring', () => {
329331
assert(mnemonic, 'Mnemonic should be defined');
330332

331333
await keyring.deserialize({
334+
// @ts-expect-error testing Uint8Array mnemonic directly
332335
mnemonic,
333336
numberOfAccounts: 1,
334337
});

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: Mnemonic;
72+
mnemonic: number[] | SerializedBuffer | string;
7373
};
7474

7575
/**

0 commit comments

Comments
 (0)