]> git.codecow.com Git - libnemo.git/commitdiff
Use conventional JSON stringification call.
authorChris Duncan <chris@zoso.dev>
Wed, 6 Aug 2025 04:23:07 +0000 (21:23 -0700)
committerChris Duncan <chris@zoso.dev>
Wed, 6 Aug 2025 04:23:07 +0000 (21:23 -0700)
src/lib/block.ts

index 0261a3bc3f466c5afe74b0735bb2db604e6b3e2e..7b5571e437522da0d3e8326a3da9faa4e773ea1a 100644 (file)
@@ -172,7 +172,7 @@ abstract class Block {
                const data = {
                        "subtype": this.subtype,
                        "json_block": "true",
-                       "block": this.toJSON()
+                       "block": JSON.stringify(this)
                }
                const res = await rpc.call('process', data)
                if (res.hash == null) {