Skip to content

Commit 15a744b

Browse files
rustyrussellendothermicdev
authored andcommitted
commando: don't try putting an integer as the 'string' parameter to "datastore".
This only worked because we handled the JSON raw: next patch prohibits this. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 70aee52 commit 15a744b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/commando.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,8 @@ static struct command_result *json_commando_rune(struct command *cmd,
968968
*rune_counter = 1;
969969
json_add_string(req->js, "mode", "must-create");
970970
}
971-
json_add_u64(req->js, "string", *rune_counter);
971+
json_add_string(req->js, "string",
972+
tal_fmt(tmpctx, "%"PRIu64, *rune_counter));
972973
return send_outreq(plugin, req);
973974
}
974975

0 commit comments

Comments
 (0)