merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 6e80643e5b3295d964f3443514caefa0bb47e835
parent 39678f88d5a1270f723a79986bf197a33e7d0424
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 29 Jan 2024 11:10:32 +0100

-fix assertions

Diffstat:
Msrc/backend/taler-merchant-httpd_private-get-orders-ID.c | 12+++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_private-get-orders-ID.c b/src/backend/taler-merchant-httpd_private-get-orders-ID.c @@ -1216,19 +1216,17 @@ process_transfer_details ( } /* Compute total amount *wired* */ - GNUNET_assert (0 < + GNUNET_assert (0 <= TALER_amount_add (&gorc->deposits_total, &gorc->deposits_total, deposit_value)); - GNUNET_assert (0 < + GNUNET_assert (0 <= TALER_amount_add (&gorc->deposit_fees_total, &gorc->deposit_fees_total, deposit_fee)); - - GNUNET_assert - (0 <= TALER_amount_subtract (&wired, - deposit_value, - deposit_fee)); + GNUNET_assert (0 <= TALER_amount_subtract (&wired, + deposit_value, + deposit_fee)); GNUNET_assert (0 == json_array_append_new ( wire_details,