From: Chris Duncan Date: Sat, 9 Aug 2025 06:57:09 +0000 (-0700) Subject: Fix block processing JSON. X-Git-Tag: v0.10.5~41^2~156 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=c7d7731df7fc13e75e288c400569b874c1e8b107;p=libnemo.git Fix block processing JSON. --- diff --git a/src/lib/block.ts b/src/lib/block.ts index 90d8110..5da5142 100644 --- a/src/lib/block.ts +++ b/src/lib/block.ts @@ -276,11 +276,11 @@ export class Block { const data = { "subtype": this.subtype, "json_block": "true", - "block": JSON.stringify(this) + "block": this.toJSON() } const res = await rpc.call('process', data) if (res.hash == null) { - throw new Error('Block could not be processed', res) + throw new Error('Block could not be processed', { cause: res }) } return res.hash }