diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-16 13:51:59 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-16 13:52:07 +0100 |
commit | f8385eeabd64cc3eb7d4df21a5994f6990b00f07 (patch) | |
tree | e370d848d31011fc4b36976cf0a214fcbfdfd957 /src/lib/testing_api_cmd_bank_transfer.c | |
parent | a358360fb34ab4a01c14a32c7bd06f941749c21e (diff) | |
download | exchange-f8385eeabd64cc3eb7d4df21a5994f6990b00f07.tar.xz |
get fakebank test to pass
Diffstat (limited to 'src/lib/testing_api_cmd_bank_transfer.c')
-rw-r--r-- | src/lib/testing_api_cmd_bank_transfer.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/testing_api_cmd_bank_transfer.c b/src/lib/testing_api_cmd_bank_transfer.c index 56880d687..938890911 100644 --- a/src/lib/testing_api_cmd_bank_transfer.c +++ b/src/lib/testing_api_cmd_bank_transfer.c @@ -49,6 +49,11 @@ struct TransferState const char *account_debit_url; /** + * Money receiver payto URL. + */ + char *payto_debit_account; + + /** * Money receiver account URL. */ const char *payto_credit_account; @@ -275,6 +280,7 @@ transfer_cleanup (void *cls, GNUNET_SCHEDULER_cancel (fts->retry_task); fts->retry_task = NULL; } + GNUNET_free (fts->payto_debit_account); GNUNET_free (fts); } @@ -303,7 +309,7 @@ transfer_traits (void *cls, TALER_TESTING_make_trait_payto (TALER_TESTING_PT_CREDIT, fts->payto_credit_account), TALER_TESTING_make_trait_payto (TALER_TESTING_PT_DEBIT, - fts->account_debit_url), + fts->payto_debit_account), TALER_TESTING_make_trait_amount_obj (0, &fts->amount), TALER_TESTING_make_trait_absolute_time (0, &fts->timestamp), TALER_TESTING_make_trait_wtid (0, @@ -346,6 +352,7 @@ TALER_TESTING_cmd_transfer fts = GNUNET_new (struct TransferState); fts->account_debit_url = account_base_url; fts->exchange_base_url = exchange_base_url; + fts->payto_debit_account = TALER_payto_xtalerbank_make2 (exchange_base_url); fts->payto_credit_account = payto_credit_account; fts->auth = *auth; fts->wtid = *wtid; |