From 054f2ab51c56a0dbb95babd5de97a7148e5af232 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 23 May 2022 21:12:31 +0200 Subject: -implement batch withdraw client-side logic --- src/testing/testing_api_cmd_withdraw.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'src/testing/testing_api_cmd_withdraw.c') diff --git a/src/testing/testing_api_cmd_withdraw.c b/src/testing/testing_api_cmd_withdraw.c index de862f91..6f8b3a63 100644 --- a/src/testing/testing_api_cmd_withdraw.c +++ b/src/testing/testing_api_cmd_withdraw.c @@ -433,13 +433,18 @@ withdraw_run (void *cls, &ws->amount, &ws->pk->fees.withdraw)); ws->reserve_history.details.withdraw.fee = ws->pk->fees.withdraw; - ws->wsh = TALER_EXCHANGE_withdraw (is->exchange, - ws->pk, - rp, - &ws->ps, - ws->h_age_commitment, - &reserve_withdraw_cb, - ws); + { + struct TALER_EXCHANGE_WithdrawCoinInput wci = { + .pk = ws->pk, + .ps = &ws->ps, + .ach = ws->h_age_commitment + }; + ws->wsh = TALER_EXCHANGE_withdraw (is->exchange, + rp, + &wci, + &reserve_withdraw_cb, + ws); + } if (NULL == ws->wsh) { GNUNET_break (0); -- cgit v1.2.3