diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-13 00:27:48 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-13 00:27:48 +0100 |
commit | d842c14f85352367d9e2d0c868b63e09c206100e (patch) | |
tree | 24f49bfc35a08a31c566aa15725065c35290cdf0 /src/lib/testing_api_cmd_deposit.c | |
parent | 6b0c121fc9818b4cce00bf4540c53cb79d968766 (diff) | |
download | exchange-d842c14f85352367d9e2d0c868b63e09c206100e.tar.xz |
refactor to make it easier to share init logic for test configurations
Diffstat (limited to 'src/lib/testing_api_cmd_deposit.c')
-rw-r--r-- | src/lib/testing_api_cmd_deposit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/testing_api_cmd_deposit.c b/src/lib/testing_api_cmd_deposit.c index c1c07a016..7c7e4936e 100644 --- a/src/lib/testing_api_cmd_deposit.c +++ b/src/lib/testing_api_cmd_deposit.c @@ -480,7 +480,7 @@ deposit_traits (void *cls, * coins, this parameter selects which one in that array. * This value is currently ignored, as only one-coin * withdrawals are implemented. - * @param wire_details wire details associated with the "deposit" + * @param target_account_payto target account for the "deposit" * request. * @param contract_terms contract terms to be signed over by the * coin. @@ -497,14 +497,16 @@ TALER_TESTING_cmd_deposit (const char *label, const char *coin_reference, unsigned int coin_index, - json_t *wire_details, + const char *target_account_payto, const char *contract_terms, struct GNUNET_TIME_Relative refund_deadline, const char *amount, unsigned int expected_response_code) { struct DepositState *ds; + json_t *wire_details; + wire_details = TALER_TESTING_make_wire_details (target_account_payto); ds = GNUNET_new (struct DepositState); ds->coin_reference = coin_reference; ds->coin_index = coin_index; |