From a046899b2ccd452f786051a41bc385cfb574bbcb Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 20 Aug 2022 21:29:29 +0200 Subject: -major KYC update, fixes misc. issues --- src/testing/testing_api_cmd_kyc_proof.c | 31 +++++++------------------------ 1 file changed, 7 insertions(+), 24 deletions(-) (limited to 'src/testing/testing_api_cmd_kyc_proof.c') diff --git a/src/testing/testing_api_cmd_kyc_proof.c b/src/testing/testing_api_cmd_kyc_proof.c index 52fb65219..ed0df5564 100644 --- a/src/testing/testing_api_cmd_kyc_proof.c +++ b/src/testing/testing_api_cmd_kyc_proof.c @@ -136,8 +136,7 @@ proof_kyc_run (void *cls, { struct KycProofGetState *kps = cls; const struct TALER_TESTING_Command *res_cmd; - const char **payto_uri; - struct TALER_PaytoHashP h_payto; + const struct TALER_PaytoHashP *h_payto; char *uargs; (void) cmd; @@ -152,35 +151,19 @@ proof_kyc_run (void *cls, return; } if (GNUNET_OK != - TALER_TESTING_get_trait_payto_uri (res_cmd, - &payto_uri)) + TALER_TESTING_get_trait_h_payto (res_cmd, + &h_payto)) { - const struct TALER_PaytoHashP *hpt; - - if (GNUNET_OK != - TALER_TESTING_get_trait_h_payto (res_cmd, - &hpt)) - { - GNUNET_break (0); - TALER_TESTING_interpreter_fail (kps->is); - return; - } - h_payto = *hpt; - } - else - { - GNUNET_log (GNUNET_ERROR_TYPE_INFO, - "Triggering KYC proof for %s\n", - *payto_uri); - TALER_payto_hash (*payto_uri, - &h_payto); + GNUNET_break (0); + TALER_TESTING_interpreter_fail (kps->is); + return; } GNUNET_asprintf (&uargs, "?code=%s&state=%s", kps->code, kps->state); kps->kph = TALER_EXCHANGE_kyc_proof (is->exchange, - &h_payto, + h_payto, kps->logic, uargs, &proof_kyc_cb, -- cgit v1.2.3