]> git.codecow.com Git - libnemo.git/commitdiff
Formatting.
authorChris Duncan <chris@zoso.dev>
Fri, 18 Jul 2025 05:56:56 +0000 (22:56 -0700)
committerChris Duncan <chris@zoso.dev>
Fri, 18 Jul 2025 05:56:56 +0000 (22:56 -0700)
src/lib/wallets/wallet.ts

index e8f4f6ef8d2ba2cdf6d6995883eed48a7cf9f94b..2aa4d73cfc483b0bf2aa431a331693d08ac42e7e 100644 (file)
@@ -103,8 +103,10 @@ export abstract class Wallet {
                if (indexes.length > 0) {\r
                        const keypairs = await this.ckd(indexes)\r
                        for (const keypair of keypairs) {\r
-                               const { privateKey, publicKey, index } = keypair\r
-                               if (index == null) throw new RangeError('Account keys derived but index missing')\r
+                               const { index, privateKey, publicKey } = keypair\r
+                               if (index == null) {\r
+                                       throw new RangeError('Account keys derived but index missing')\r
+                               }\r
                                if (privateKey != null) {\r
                                        output[index] = await Account.import(privateKey, this.seed)\r
                                } else if (publicKey != null) {\r