From c31b57c32a5e483d3daa8ea84939fa6618aa3fa0 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 13 Nov 2024 10:43:10 +1030 Subject: [PATCH] plugins/exposesecret: fix for API change. That will teach me to merge without rebasing. Signed-off-by: Rusty Russell --- plugins/exposesecret.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/exposesecret.c b/plugins/exposesecret.c index 31e812816..ea50fa03c 100644 --- a/plugins/exposesecret.c +++ b/plugins/exposesecret.c @@ -129,11 +129,11 @@ static struct command_result *json_exposesecret(struct command *cmd, return command_finished(cmd, js); } -static const char *init(struct plugin *plugin, +static const char *init(struct command *init_cmd, const char *buf UNUSED, const jsmntok_t *config UNUSED) { - struct exposesecret *exposesecret = exposesecret_data(plugin); - rpc_scan(plugin, "getinfo", + struct exposesecret *exposesecret = exposesecret_data(init_cmd->plugin); + rpc_scan(init_cmd, "getinfo", take(json_out_obj(NULL, NULL, NULL)), "{id:%,alias:%}", JSON_SCAN(json_to_pubkey, &exposesecret->our_node_id),