commit e74fd3d2882bb608c1f6c2c71ddce220bdd72454
parent e378b6121ee59c0fbddb9f769336a3bbcd1739cc
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Sat, 11 Jul 2026 20:33:54 +0200
fix trait limit if deposit did not succeed
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/testing/testing_api_cmd_deposit.c b/src/testing/testing_api_cmd_deposit.c
@@ -690,13 +690,15 @@ deposit_traits (void *cls,
{
struct TALER_TESTING_Trait traits[] = {
- /* First two traits are only available if
+ /* First four traits are only available if
ds->traits is true */
TALER_TESTING_make_trait_exchange_pub (0,
&ds->exchange_pub),
TALER_TESTING_make_trait_exchange_sig (0,
&ds->exchange_sig),
TALER_TESTING_make_trait_amount (&ds->cumulative_total),
+ TALER_TESTING_make_trait_timestamp (0,
+ &ds->exchange_timestamp),
/* These traits are always available */
TALER_TESTING_make_trait_coin_history (0,
&ds->che),
@@ -722,8 +724,6 @@ deposit_traits (void *cls,
&ds->amount),
TALER_TESTING_make_trait_deposit_fee_amount (0,
&ds->deposit_fee),
- TALER_TESTING_make_trait_timestamp (0,
- &ds->exchange_timestamp),
TALER_TESTING_make_trait_wire_deadline (0,
&ds->wire_deadline),
TALER_TESTING_make_trait_refund_deadline (0,
@@ -733,7 +733,7 @@ deposit_traits (void *cls,
return TALER_TESTING_get_trait ((ds->deposit_succeeded)
? traits
- : &traits[2],
+ : &traits[4],
ret,
trait,
index);