From 15a744be8c1b1314822dc95529dfae827f3ff28e Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 11 Feb 2023 12:03:50 +1030 Subject: [PATCH] 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 --- plugins/commando.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/commando.c b/plugins/commando.c index 43987caa8..648937e8c 100644 --- a/plugins/commando.c +++ b/plugins/commando.c @@ -968,7 +968,8 @@ static struct command_result *json_commando_rune(struct command *cmd, *rune_counter = 1; json_add_string(req->js, "mode", "must-create"); } - json_add_u64(req->js, "string", *rune_counter); + json_add_string(req->js, "string", + tal_fmt(tmpctx, "%"PRIu64, *rune_counter)); return send_outreq(plugin, req); }