From: Chris Duncan Date: Fri, 29 Nov 2024 09:24:46 +0000 (-0800) Subject: Pass index when creating account from known keypair. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=8bc587547be552dafd2fd525679225c40059b579;p=libnemo.git Pass index when creating account from known keypair. --- diff --git a/src/lib/account.ts b/src/lib/account.ts index 953fdef..d73189e 100644 --- a/src/lib/account.ts +++ b/src/lib/account.ts @@ -133,7 +133,7 @@ export class Account { Account.#isInternal = true Account.#validateKey(publicKey) Account.#validateKey(privateKey) - const account = Account.fromPublicKey(publicKey) + const account = Account.fromPublicKey(publicKey, index) account.#prv = privateKey.toUpperCase() return account }