From e8a892c29aed9b08f800878ad4d6e789f9571b64 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 23 Jul 2019 21:56:21 +0200 Subject: modify /payback API and test usage of that API to pass/return additional information required when dealing with payback of refreshed coins --- src/lib/testing_api_cmd_deposit.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/lib/testing_api_cmd_deposit.c') diff --git a/src/lib/testing_api_cmd_deposit.c b/src/lib/testing_api_cmd_deposit.c index 6fa2310d..1868e8bd 100644 --- a/src/lib/testing_api_cmd_deposit.c +++ b/src/lib/testing_api_cmd_deposit.c @@ -449,8 +449,8 @@ deposit_traits (void *cls, if (GNUNET_OK != TALER_TESTING_get_trait_coin_priv (coin_cmd, - ds->coin_index, - &coin_spent_priv)) + ds->coin_index, + &coin_spent_priv)) { GNUNET_break (0); TALER_TESTING_interpreter_fail (ds->is); @@ -461,26 +461,26 @@ deposit_traits (void *cls, /* First two traits are only available if ds->traits is #GNUNET_YES */ TALER_TESTING_make_trait_exchange_pub (0, - &ds->exchange_pub), + &ds->exchange_pub), TALER_TESTING_make_trait_exchange_sig (0, - &ds->exchange_sig), + &ds->exchange_sig), /* These traits are always available */ TALER_TESTING_make_trait_coin_priv (0, - coin_spent_priv), + coin_spent_priv), TALER_TESTING_make_trait_wire_details (0, - ds->wire_details), + ds->wire_details), TALER_TESTING_make_trait_contract_terms (0, - ds->contract_terms), + ds->contract_terms), TALER_TESTING_make_trait_peer_key (0, - &ds->merchant_priv.eddsa_priv), + &ds->merchant_priv.eddsa_priv), TALER_TESTING_make_trait_amount (0, ds->amount), TALER_TESTING_trait_end () }; return TALER_TESTING_get_trait ((ds->traits_ready) - ? traits - : &traits[2], + ? traits + : &traits[2], ret, trait, index); -- cgit v1.2.3