From 2555c170bed252c50810620ec689ed2dc2d801bf Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Fri, 29 Nov 2024 01:45:49 -0800 Subject: [PATCH] Use more concise typing. --- src/lib/wallet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/wallet.ts b/src/lib/wallet.ts index 7c6f000..43e74ed 100644 --- a/src/lib/wallet.ts +++ b/src/lib/wallet.ts @@ -100,7 +100,7 @@ abstract class Wallet { const data: any = [] results.forEach(r => data.push({ privateKey: hex.toBytes(r.privateKey as string), index: r.index })) let now = performance.now() - const keypairs: [{ publicKey: string, privateKey: string, index: number }] = await this.#pool.work(data) + const keypairs: KeyPair[] = await this.#pool.work(data) console.log(`keypairs: ${-now + (now = performance.now())} ms`) for (const keypair of keypairs) { if (keypair.publicKey == null) throw new RangeError('Account public key missing') -- 2.34.1