summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_deposit.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-01 19:18:31 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-01 19:18:35 +0200
commit18541a284b57ed7f0c110f084649eb292e603e63 (patch)
treee00abc102486ad4164742ea3205cb04d8419a51f /src/lib/exchange_api_deposit.c
parentac96733695ecc0ebe8e582e3230f2a95c89712bc (diff)
downloadexchange-18541a284b57ed7f0c110f084649eb292e603e63.tar.gz
exchange-18541a284b57ed7f0c110f084649eb292e603e63.tar.bz2
exchange-18541a284b57ed7f0c110f084649eb292e603e63.zip
-allow 0 for refund deadline
Diffstat (limited to 'src/lib/exchange_api_deposit.c')
-rw-r--r--src/lib/exchange_api_deposit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/exchange_api_deposit.c b/src/lib/exchange_api_deposit.c
index f22ae0df..86f5034a 100644
--- a/src/lib/exchange_api_deposit.c
+++ b/src/lib/exchange_api_deposit.c
@@ -680,8 +680,9 @@ TALER_EXCHANGE_deposit (struct TALER_EXCHANGE_Handle *exchange,
timestamp),
GNUNET_JSON_pack_data_auto ("merchant_pub",
merchant_pub),
- GNUNET_JSON_pack_time_abs ("refund_deadline",
- refund_deadline),
+ GNUNET_JSON_pack_allow_null (
+ GNUNET_JSON_pack_time_abs ("refund_deadline",
+ refund_deadline)),
GNUNET_JSON_pack_time_abs ("wire_transfer_deadline",
wire_deadline),
GNUNET_JSON_pack_data_auto ("coin_sig",