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>
This commit is contained in:
Rusty Russell 2023-02-11 12:03:50 +10:30 committed by Alex Myers
parent 70aee52903
commit 15a744be8c

View File

@ -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);
}