summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-16 13:51:59 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-16 13:52:07 +0100
commitf8385eeabd64cc3eb7d4df21a5994f6990b00f07 (patch)
treee370d848d31011fc4b36976cf0a214fcbfdfd957
parenta358360fb34ab4a01c14a32c7bd06f941749c21e (diff)
downloadexchange-f8385eeabd64cc3eb7d4df21a5994f6990b00f07.tar.gz
exchange-f8385eeabd64cc3eb7d4df21a5994f6990b00f07.tar.bz2
exchange-f8385eeabd64cc3eb7d4df21a5994f6990b00f07.zip
get fakebank test to pass
-rw-r--r--src/lib/testing_api_cmd_bank_transfer.c9
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 56880d68..93889091 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;