From: Chris Duncan Date: Tue, 3 Dec 2024 20:16:14 +0000 (-0800) Subject: Fix pow response destructuring assignment. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=650abfd29f63a6ed396a4a6db0a2cd66d294c9f3;p=libnemo.git Fix pow response destructuring assignment. --- 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 }