]> zoso.dev Git - libnemo.git/commitdiff
Fix parameter name for consistency.
authorChris Duncan <chris@zoso.dev>
Mon, 14 Oct 2024 09:24:08 +0000 (02:24 -0700)
committerChris Duncan <chris@zoso.dev>
Mon, 14 Oct 2024 09:24:08 +0000 (02:24 -0700)
src/lib/wallet.ts

index 539e9f966ea989f286a36ae5f311752f4034f1e9..f0dabd5fe74ded42685f82a499e17f85298cc739 100644 (file)
@@ -495,13 +495,13 @@ export class Blake2bWallet extends Wallet {
        * @returns {Blake2bWallet} A newly instantiated Blake2bWallet\r
        */\r
        static async fromMnemonic (key: CryptoKey, mnemonic: string): Promise<Blake2bWallet>\r
-       static async fromMnemonic (password: string | CryptoKey, mnemonic: string): Promise<Blake2bWallet> {\r
+       static async fromMnemonic (passkey: string | CryptoKey, mnemonic: string): Promise<Blake2bWallet> {\r
                Blake2bWallet.#isInternal = true\r
                try {\r
                        const m = await Bip39Mnemonic.fromPhrase(mnemonic)\r
                        const s = await m.toBlake2bSeed()\r
                        const wallet = new this(s, m)\r
-                       await wallet.lock(password as string)\r
+                       await wallet.lock(passkey as string)\r
                        return wallet\r
                } catch (err) {\r
                        throw new Error(`Error importing Blake2bWallet from mnemonic: ${err}`)\r