diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-05-07 20:22:02 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-05 16:35:00 +0200 |
commit | 4f82885560d5d468ef5230f7ec383c612cc9625c (patch) | |
tree | 6a463d7f0fec1b301659e21d4d62e6b8633f5d99 /src/lib/exchange_api_refund.c | |
parent | 727b7b04f3ae23fd49da7479fe4b4258513aef83 (diff) | |
download | exchange-4f82885560d5d468ef5230f7ec383c612cc9625c.tar.xz |
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.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/exchange_api_refund.c b/src/lib/exchange_api_refund.c index b1ea176bf..6f91389f1 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: |