mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +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
@ -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…
Reference in New Issue
Block a user