From 437609be86d4ce7035d3a7e541920041258212b8 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Mon, 14 Oct 2024 02:24:08 -0700 Subject: [PATCH] Fix parameter name for consistency. --- src/lib/wallet.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/wallet.ts b/src/lib/wallet.ts index 539e9f9..f0dabd5 100644 --- a/src/lib/wallet.ts +++ b/src/lib/wallet.ts @@ -495,13 +495,13 @@ export class Blake2bWallet extends Wallet { * @returns {Blake2bWallet} A newly instantiated Blake2bWallet */ static async fromMnemonic (key: CryptoKey, mnemonic: string): Promise - static async fromMnemonic (password: string | CryptoKey, mnemonic: string): Promise { + static async fromMnemonic (passkey: string | CryptoKey, mnemonic: string): Promise { Blake2bWallet.#isInternal = true try { const m = await Bip39Mnemonic.fromPhrase(mnemonic) const s = await m.toBlake2bSeed() const wallet = new this(s, m) - await wallet.lock(password as string) + await wallet.lock(passkey as string) return wallet } catch (err) { throw new Error(`Error importing Blake2bWallet from mnemonic: ${err}`) -- 2.34.1