summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_exec_closer.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-10-15 22:03:55 +0200
committerChristian Grothoff <christian@grothoff.org>2022-10-15 22:03:55 +0200
commit518c7009e7b19d681852a91e30028d37e6f55cd1 (patch)
treeeec2be67afe07b914c782d9ec4564c9f9cd89c1a /src/testing/testing_api_cmd_exec_closer.c
parent7421142bc105342043ae3b54cad2c445ef58e193 (diff)
downloadexchange-518c7009e7b19d681852a91e30028d37e6f55cd1.tar.gz
exchange-518c7009e7b19d681852a91e30028d37e6f55cd1.tar.bz2
exchange-518c7009e7b19d681852a91e30028d37e6f55cd1.zip
handle reserve open/close responses in reserve history in libtalerexchange
Diffstat (limited to 'src/testing/testing_api_cmd_exec_closer.c')
-rw-r--r--src/testing/testing_api_cmd_exec_closer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testing/testing_api_cmd_exec_closer.c b/src/testing/testing_api_cmd_exec_closer.c
index 75eab2d9f..9ee436af0 100644
--- a/src/testing/testing_api_cmd_exec_closer.c
+++ b/src/testing/testing_api_cmd_exec_closer.c
@@ -221,11 +221,11 @@ TALER_TESTING_cmd_exec_closer (const char *label,
/* expected amount includes fee, while our argument
gives the amount _without_ the fee. So add the fee. */
GNUNET_assert (0 <=
- TALER_amount_add (&as->reserve_history.amount,
- &as->reserve_history.amount,
- &as->reserve_history.details.close_details.
- fee));
- as->reserve_history.type = TALER_EXCHANGE_RTT_CLOSE;
+ TALER_amount_add (
+ &as->reserve_history.amount,
+ &as->reserve_history.amount,
+ &as->reserve_history.details.close_details.fee));
+ as->reserve_history.type = TALER_EXCHANGE_RTT_CLOSING;
}
{
struct TALER_TESTING_Command cmd = {