From fe14480cbbdda4cfb97e7ad08f1f59405d78adf9 Mon Sep 17 00:00:00 2001 From: Lagrang3 Date: Mon, 12 Aug 2024 10:27:05 +0100 Subject: [PATCH] askrene: reserve: fix assertion Fixes bad guide for json_scan. Signed-off-by: Lagrang3 --- plugins/askrene/askrene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/askrene/askrene.c b/plugins/askrene/askrene.c index 075457c946a5..4fcec46ce685 100644 --- a/plugins/askrene/askrene.c +++ b/plugins/askrene/askrene.c @@ -115,7 +115,7 @@ static struct command_result *parse_reserve_path(struct command *cmd, { const char *err; - err = json_scan(tmpctx, buffer, tok, "{short_channel_id:%,direction:%,amount_msat:%s}", + err = json_scan(tmpctx, buffer, tok, "{short_channel_id:%,direction:%,amount_msat:%}", JSON_SCAN(json_to_short_channel_id, &scidd->scid), JSON_SCAN(json_to_zero_or_one, &scidd->dir), JSON_SCAN(json_to_msat, amount));