get fakebank test to pass
This commit is contained in:
parent
a358360fb3
commit
f8385eeabd
@ -48,6 +48,11 @@ struct TransferState
|
|||||||
*/
|
*/
|
||||||
const char *account_debit_url;
|
const char *account_debit_url;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Money receiver payto URL.
|
||||||
|
*/
|
||||||
|
char *payto_debit_account;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Money receiver account URL.
|
* Money receiver account URL.
|
||||||
*/
|
*/
|
||||||
@ -275,6 +280,7 @@ transfer_cleanup (void *cls,
|
|||||||
GNUNET_SCHEDULER_cancel (fts->retry_task);
|
GNUNET_SCHEDULER_cancel (fts->retry_task);
|
||||||
fts->retry_task = NULL;
|
fts->retry_task = NULL;
|
||||||
}
|
}
|
||||||
|
GNUNET_free (fts->payto_debit_account);
|
||||||
GNUNET_free (fts);
|
GNUNET_free (fts);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -303,7 +309,7 @@ transfer_traits (void *cls,
|
|||||||
TALER_TESTING_make_trait_payto (TALER_TESTING_PT_CREDIT,
|
TALER_TESTING_make_trait_payto (TALER_TESTING_PT_CREDIT,
|
||||||
fts->payto_credit_account),
|
fts->payto_credit_account),
|
||||||
TALER_TESTING_make_trait_payto (TALER_TESTING_PT_DEBIT,
|
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_amount_obj (0, &fts->amount),
|
||||||
TALER_TESTING_make_trait_absolute_time (0, &fts->timestamp),
|
TALER_TESTING_make_trait_absolute_time (0, &fts->timestamp),
|
||||||
TALER_TESTING_make_trait_wtid (0,
|
TALER_TESTING_make_trait_wtid (0,
|
||||||
@ -346,6 +352,7 @@ TALER_TESTING_cmd_transfer
|
|||||||
fts = GNUNET_new (struct TransferState);
|
fts = GNUNET_new (struct TransferState);
|
||||||
fts->account_debit_url = account_base_url;
|
fts->account_debit_url = account_base_url;
|
||||||
fts->exchange_base_url = exchange_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->payto_credit_account = payto_credit_account;
|
||||||
fts->auth = *auth;
|
fts->auth = *auth;
|
||||||
fts->wtid = *wtid;
|
fts->wtid = *wtid;
|
||||||
|
Loading…
Reference in New Issue
Block a user