makesecret: change info_hex arg to simply "hex" to match datastore command.

And fix schema: it wasn't tested as there was no test-by-parameter-name.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-07-15 13:57:07 +09:30
parent 769efe8d54
commit c34a0a22ad
5 changed files with 15 additions and 7 deletions

View File

@@ -376,7 +376,7 @@ static const char *init(struct plugin *p,
"{scb:%}", JSON_SCAN(json_to_scb_chan, &scb_chan));
rpc_scan(p, "makesecret",
take(json_out_obj(NULL, "info_hex",
take(json_out_obj(NULL, "hex",
tal_hexstr(tmpctx,
info_hex,
tal_bytelen(info_hex)))),