From 650abfd29f63a6ed396a4a6db0a2cd66d294c9f3 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Tue, 3 Dec 2024 12:16:14 -0800 Subject: [PATCH] Fix pow response destructuring assignment. --- src/lib/block.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/block.ts b/src/lib/block.ts index b5ca2df..ee3c5a8 100644 --- a/src/lib/block.ts +++ b/src/lib/block.ts @@ -96,7 +96,7 @@ abstract class Block { "hash": this.previous } // const { work } = await rpc.call('work_generate', data) - const { work } = await this.#pool.work('converge', [data]) + const [{ work }] = await this.#pool.work('converge', [data]) this.work = work } -- 2.34.1