diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-06-07 23:11:20 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-06-07 23:11:20 +0200 |
commit | 9725b7d42505d7820fea6e28a638c06b7e81f893 (patch) | |
tree | e1a3233e8f2dbe4f61a6c1d1cff4d83f98563594 /src/testing/testing_api_cmd_patch_template.c | |
parent | 0e2148d63b85025c37d4212162a522e47445acab (diff) |
major libtalertesting API refactoring, including no longer having taler-specific logic in the test engine core
Diffstat (limited to 'src/testing/testing_api_cmd_patch_template.c')
-rw-r--r-- | src/testing/testing_api_cmd_patch_template.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/testing/testing_api_cmd_patch_template.c b/src/testing/testing_api_cmd_patch_template.c index bc260c00..caf3bf23 100644 --- a/src/testing/testing_api_cmd_patch_template.c +++ b/src/testing/testing_api_cmd_patch_template.c @@ -142,15 +142,16 @@ patch_template_run (void *cls, struct PatchTemplateState *pis = cls; pis->is = is; - pis->iph = TALER_MERCHANT_template_patch (is->ctx, - pis->merchant_url, - pis->template_id, - pis->template_description, - pis->pos_key, - pis->pos_alg, - pis->template_contract, - &patch_template_cb, - pis); + pis->iph = TALER_MERCHANT_template_patch ( + TALER_TESTING_interpreter_get_context (is), + pis->merchant_url, + pis->template_id, + pis->template_description, + pis->pos_key, + pis->pos_alg, + pis->template_contract, + &patch_template_cb, + pis); GNUNET_assert (NULL != pis->iph); } @@ -173,12 +174,11 @@ patch_template_traits (void *cls, { struct PatchTemplateState *pts = cls; struct TALER_TESTING_Trait traits[] = { - TALER_TESTING_make_trait_template_description (&pts->template_description), - TALER_TESTING_make_trait_template_pos_key ( - (const char **) &pts->pos_key), + TALER_TESTING_make_trait_template_description (pts->template_description), + TALER_TESTING_make_trait_template_pos_key (pts->pos_key), TALER_TESTING_make_trait_template_pos_alg (&pts->pos_alg), TALER_TESTING_make_trait_template_contract (pts->template_contract), - TALER_TESTING_make_trait_template_id (&pts->template_id), + TALER_TESTING_make_trait_template_id (pts->template_id), TALER_TESTING_trait_end (), }; |