mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +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:
committed by
Alex Myers
parent
70aee52903
commit
15a744be8c
@@ -968,7 +968,8 @@ static struct command_result *json_commando_rune(struct command *cmd,
|
|||||||
*rune_counter = 1;
|
*rune_counter = 1;
|
||||||
json_add_string(req->js, "mode", "must-create");
|
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);
|
return send_outreq(plugin, req);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user