Skip to content

Commit

Permalink
chore: remove useless check
Browse files Browse the repository at this point in the history
  • Loading branch information
0xApotheosis committed Oct 18, 2023
1 parent feafe29 commit 38f85ef
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ export class Mnemonic extends Revocable(class {}) implements Bip39Mnemonic {
}

async toSeed(passphrase?: string): Promise<SeedType> {
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"));

Expand Down

0 comments on commit 38f85ef

Please sign in to comment.