mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 06:41:44 +01:00
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:
parent
70aee52903
commit
15a744be8c
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue