aboutsummaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_management_set_wire_fee.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/exchange_api_management_set_wire_fee.c')
-rw-r--r--src/lib/exchange_api_management_set_wire_fee.c36
1 files changed, 15 insertions, 21 deletions
diff --git a/src/lib/exchange_api_management_set_wire_fee.c b/src/lib/exchange_api_management_set_wire_fee.c
index 6048bf657..075dbbbba 100644
--- a/src/lib/exchange_api_management_set_wire_fee.c
+++ b/src/lib/exchange_api_management_set_wire_fee.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of TALER 2 This file is part of TALER
3 Copyright (C) 2020 Taler Systems SA 3 Copyright (C) 2020-2021 Taler Systems SA
4 4
5 TALER is free software; you can redistribute it and/or modify it under the 5 TALER is free software; you can redistribute it and/or modify it under the
6 terms of the GNU General Public License as published by the Free Software 6 terms of the GNU General Public License as published by the Free Software
@@ -152,27 +152,21 @@ TALER_EXCHANGE_management_set_wire_fees (
152 GNUNET_free (swfh); 152 GNUNET_free (swfh);
153 return NULL; 153 return NULL;
154 } 154 }
155 body = json_pack ("{s:s, s:o, s:o, s:o, s:o, s:o}", 155 body = GNUNET_JSON_PACK (
156 "wire_method", 156 GNUNET_JSON_pack_string ("wire_method",
157 wire_method, 157 wire_method),
158 "master_sig", 158 GNUNET_JSON_pack_data_auto ("master_sig",
159 GNUNET_JSON_from_data_auto (master_sig), 159 master_sig),
160 "fee_start", 160 GNUNET_JSON_pack_time_abs ("fee_start",
161 GNUNET_JSON_from_time_abs (validity_start), 161 validity_start),
162 "fee_end", 162 GNUNET_JSON_pack_time_abs ("fee_end",
163 GNUNET_JSON_from_time_abs (validity_end), 163 validity_end),
164 "closing_fee", 164 TALER_JSON_pack_amount ("closing_fee",
165 TALER_JSON_from_amount (closing_fee), 165 closing_fee),
166 "wire_fee", 166 TALER_JSON_pack_amount ("wire_fee",
167 TALER_JSON_from_amount (wire_fee)); 167 wire_fee));
168 if (NULL == body)
169 {
170 GNUNET_break (0);
171 GNUNET_free (swfh->url);
172 GNUNET_free (swfh);
173 return NULL;
174 }
175 eh = curl_easy_init (); 168 eh = curl_easy_init ();
169 GNUNET_assert (NULL != eh);
176 if (GNUNET_OK != 170 if (GNUNET_OK !=
177 TALER_curl_easy_post (&swfh->post_ctx, 171 TALER_curl_easy_post (&swfh->post_ctx,
178 eh, 172 eh,