]> zoso.dev Git - libnemo.git/commitdiff
Fix pow response destructuring assignment.
authorChris Duncan <chris@zoso.dev>
Tue, 3 Dec 2024 20:16:14 +0000 (12:16 -0800)
committerChris Duncan <chris@zoso.dev>
Tue, 3 Dec 2024 20:16:14 +0000 (12:16 -0800)
src/lib/block.ts

index b5ca2df934fcbdaba77f27299fd72dee71de839c..ee3c5a860f271023269ee73a7a5f5fee445ad9ac 100644 (file)
@@ -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
        }