From 8bc587547be552dafd2fd525679225c40059b579 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Fri, 29 Nov 2024 01:24:46 -0800 Subject: [PATCH] Pass index when creating account from known keypair. --- src/lib/account.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.34.1