diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-10-12 11:32:58 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-10-12 11:32:58 +0200 |
commit | 3036c21283921015339a4b33b0315b98762ace7c (patch) | |
tree | b16669d026d3abf2a472b32c22a8efc0e7070110 /src | |
parent | 5e2e71ec1163f46ba4cd651790215e8c498bcbb0 (diff) | |
download | exchange-3036c21283921015339a4b33b0315b98762ace7c.tar.xz |
fix cmd reserve close FTBFS
Diffstat (limited to 'src')
-rw-r--r-- | src/testing/Makefile.am | 1 | ||||
-rw-r--r-- | src/testing/testing_api_cmd_reserve_close.c | 10 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/testing/Makefile.am b/src/testing/Makefile.am index 256276ce6..8042631ae 100644 --- a/src/testing/Makefile.am +++ b/src/testing/Makefile.am @@ -86,6 +86,7 @@ libtalertesting_la_SOURCES = \ testing_api_cmd_refund.c \ testing_api_cmd_refresh.c \ testing_api_cmd_reserve_attest.c \ + testing_api_cmd_reserve_close.c \ testing_api_cmd_reserve_get.c \ testing_api_cmd_reserve_get_attestable.c \ testing_api_cmd_reserve_history.c \ diff --git a/src/testing/testing_api_cmd_reserve_close.c b/src/testing/testing_api_cmd_reserve_close.c index 5b7293754..4c243c740 100644 --- a/src/testing/testing_api_cmd_reserve_close.c +++ b/src/testing/testing_api_cmd_reserve_close.c @@ -44,9 +44,9 @@ struct CloseState struct TALER_EXCHANGE_ReservesCloseHandle *rsh; /** - * Expected reserve balance. + * payto://-URI where to wire the funds. */ - const char *expected_balance; + const char *target_account; /** * Private key of the reserve being analyzed. @@ -79,11 +79,10 @@ struct CloseState */ static void reserve_close_cb (void *cls, - const struct TALER_EXCHANGE_ReserveClose *rs) + const struct TALER_EXCHANGE_ReserveCloseResult *rs) { struct CloseState *ss = cls; struct TALER_TESTING_Interpreter *is = ss->is; - struct TALER_Amount eb; ss->rsh = NULL; if (ss->expected_response_code != rs->hr.http_status) @@ -147,6 +146,7 @@ close_run (void *cls, &ss->reserve_pub.eddsa_pub); ss->rsh = TALER_EXCHANGE_reserves_close (is->exchange, ss->reserve_priv, + ss->target_account, &reserve_close_cb, ss); } @@ -189,7 +189,7 @@ TALER_TESTING_cmd_reserve_close (const char *label, GNUNET_assert (NULL != reserve_reference); ss = GNUNET_new (struct CloseState); ss->reserve_reference = reserve_reference; - ss->expected_balance = expected_balance; + ss->target_account = target_account; ss->expected_response_code = expected_response_code; { struct TALER_TESTING_Command cmd = { |