From: Chris Duncan Date: Wed, 20 Aug 2025 18:51:20 +0000 (-0700) Subject: Create JSON object for block processing without literal strings. X-Git-Tag: v0.10.5~41^2~40 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=db82bd054c0c68c0e1e702deab0b76ded910e239;p=libnemo.git Create JSON object for block processing without literal strings. --- diff --git a/src/lib/block.ts b/src/lib/block.ts index 16bc88b..2e0da01 100644 --- a/src/lib/block.ts +++ b/src/lib/block.ts @@ -274,9 +274,9 @@ export class Block { throw new Error('Block is missing proof-of-work. Use pow() and try again.') } const data = { - "subtype": this.subtype, - "json_block": "true", - "block": this.toJSON() + subtype: this.subtype, + json_block: true, + block: this.toJSON() } const res = await rpc.call('process', data) if (res.hash == null) {