From 70539cb0f5e9b60dbbb40009687f2d635763226b Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 14 Dec 2023 14:07:30 -0300 Subject: fix: account restriction regex field --- src/exchange-tools/taler-exchange-offline.c | 2 +- src/lib/exchange_api_handle.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/exchange-tools/taler-exchange-offline.c b/src/exchange-tools/taler-exchange-offline.c index 1a8d61e70..7380e6079 100644 --- a/src/exchange-tools/taler-exchange-offline.c +++ b/src/exchange-tools/taler-exchange-offline.c @@ -3052,7 +3052,7 @@ parse_restriction (char *const *args, GNUNET_JSON_PACK ( GNUNET_JSON_pack_string ("type", "regex"), - GNUNET_JSON_pack_string ("regex", + GNUNET_JSON_pack_string ("payto_regex", args[1]), GNUNET_JSON_pack_string ("human_hint", args[2]), diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c index 1d44ed34f..4b0298744 100644 --- a/src/lib/exchange_api_handle.c +++ b/src/lib/exchange_api_handle.c @@ -2045,7 +2045,7 @@ ar_to_json (unsigned int ar_len, "type", "regex"), GNUNET_JSON_pack_string ( - "regex", + "payto_regex", ar->details.regex.posix_egrep), GNUNET_JSON_pack_string ( "human_hint", -- cgit v1.2.3