summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_refund.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-05-07 20:22:02 +0200
committerChristian Grothoff <christian@grothoff.org>2020-05-11 10:01:40 +0200
commit141d4b154a9d6f57ba82edda1cd003be8adb1dd5 (patch)
tree2e0f9e4a077098a0babebb2b79530c189cbc8278 /src/lib/exchange_api_refund.c
parent28dff45363c8f161ceac808b69579da791e4d5d1 (diff)
downloadexchange-141d4b154a9d6f57ba82edda1cd003be8adb1dd5.tar.gz
exchange-141d4b154a9d6f57ba82edda1cd003be8adb1dd5.tar.bz2
exchange-141d4b154a9d6f57ba82edda1cd003be8adb1dd5.zip
towards changing timestamp in deposit confirmation (tests failing)
Diffstat (limited to 'src/lib/exchange_api_refund.c')
-rw-r--r--src/lib/exchange_api_refund.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/exchange_api_refund.c b/src/lib/exchange_api_refund.c
index b1ea176b..6f91389f 100644
--- a/src/lib/exchange_api_refund.c
+++ b/src/lib/exchange_api_refund.c
@@ -148,7 +148,8 @@ handle_refund_finished (void *cls,
struct TALER_ExchangeSignatureP exchange_sig;
struct TALER_ExchangePublicKeyP *ep = NULL;
struct TALER_ExchangeSignatureP *es = NULL;
- struct TALER_Amount *rf = NULL;
+ struct TALER_Amount ra;
+ const struct TALER_Amount *rf = NULL;
const json_t *j = response;
struct TALER_EXCHANGE_HttpResponse hr = {
.reply = j,
@@ -176,7 +177,9 @@ handle_refund_finished (void *cls,
{
ep = &exchange_pub;
es = &exchange_sig;
- rf = &rh->depconf.refund_fee;
+ TALER_amount_ntoh (&ra,
+ &rh->depconf.refund_fee);
+ rf = &ra;
}
break;
case MHD_HTTP_BAD_REQUEST: