From c7d7731df7fc13e75e288c400569b874c1e8b107 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Fri, 8 Aug 2025 23:57:09 -0700 Subject: [PATCH] Fix block processing JSON. --- src/lib/block.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } -- 2.47.3