]> zoso.dev Git - libnemo.git/commitdiff
Pass index when creating account from known keypair.
authorChris Duncan <chris@zoso.dev>
Fri, 29 Nov 2024 09:24:46 +0000 (01:24 -0800)
committerChris Duncan <chris@zoso.dev>
Fri, 29 Nov 2024 09:24:46 +0000 (01:24 -0800)
src/lib/account.ts

index 953fdef6fa369a9a4b25287481a49fed634613d8..d73189e0341fd9dbfbd9b0e5e09463937831f0be 100644 (file)
@@ -133,7 +133,7 @@ export class Account {
                Account.#isInternal = true\r
                Account.#validateKey(publicKey)\r
                Account.#validateKey(privateKey)\r
-               const account = Account.fromPublicKey(publicKey)\r
+               const account = Account.fromPublicKey(publicKey, index)\r
                account.#prv = privateKey.toUpperCase()\r
                return account\r
        }\r