diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-11-04 21:38:59 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-11-05 10:38:39 +0100 |
commit | 7b4cfe1a4c1347d398983abfc731ceeea81a9f60 (patch) | |
tree | 0db2b98233b03dacef58903c6f3141274c609d57 /src/testing/testing_api_cmd_post_transfers.c | |
parent | c410fd2f73033f7e178be2642d020e866bed8df0 (diff) |
-bugfix
Diffstat (limited to 'src/testing/testing_api_cmd_post_transfers.c')
-rw-r--r-- | src/testing/testing_api_cmd_post_transfers.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testing/testing_api_cmd_post_transfers.c b/src/testing/testing_api_cmd_post_transfers.c index eb247c55..4bec6ec4 100644 --- a/src/testing/testing_api_cmd_post_transfers.c +++ b/src/testing/testing_api_cmd_post_transfers.c @@ -75,6 +75,11 @@ struct PostTransfersState struct TALER_FullPaytoHashP h_payto; /** + * Set to the hash of the normalized @e payto_uri. + */ + struct TALER_NormalizedPaytoHashP h_normalized_payto; + + /** * Authentication details to authenticate to the bank. */ struct TALER_BANK_AuthenticationData auth; @@ -178,6 +183,7 @@ post_transfers_traits (void *cls, TALER_TESTING_make_trait_wtid (&pts->wtid), TALER_TESTING_make_trait_credit_payto_uri (&pts->credit_account), TALER_TESTING_make_trait_h_full_payto (&pts->h_payto), + TALER_TESTING_make_trait_h_normalized_payto (&pts->h_normalized_payto), TALER_TESTING_make_trait_amount (&pts->credit_amount), TALER_TESTING_make_trait_exchange_url (pts->exchange_url), TALER_TESTING_make_trait_bank_row (&pts->serial), @@ -377,6 +383,8 @@ TALER_TESTING_cmd_merchant_post_transfer ( pts->payto_uri = payto_uri; TALER_full_payto_hash (payto_uri, &pts->h_payto); + TALER_full_payto_normalize_and_hash (payto_uri, + &pts->h_normalized_payto); GNUNET_assert (GNUNET_OK == TALER_string_to_amount (credit_amount, &pts->credit_amount)); |