diff --git a/packages/hdwallet-native/src/crypto/isolation/engines/default/bip39.ts b/packages/hdwallet-native/src/crypto/isolation/engines/default/bip39.ts index 565c1d93a..f563e66a7 100644 --- a/packages/hdwallet-native/src/crypto/isolation/engines/default/bip39.ts +++ b/packages/hdwallet-native/src/crypto/isolation/engines/default/bip39.ts @@ -24,8 +24,6 @@ export class Mnemonic extends Revocable(class {}) implements Bip39Mnemonic { } async toSeed(passphrase?: string): Promise { - if (passphrase !== undefined && typeof passphrase !== "string") throw new Error("bad passphrase type"); - const mnemonic = this.#mnemonic; const salt = new TextEncoder().encode(`mnemonic${passphrase ?? ""}`.normalize("NFKD"));