summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_get_template.c
diff options
context:
space:
mode:
authorpriscilla <priscilla.huang@efrei.net>2023-02-20 04:40:12 -0500
committerpriscilla <priscilla.huang@efrei.net>2023-02-20 12:19:40 -0500
commit83c11d7428c6d4ba2e1749630724c39811a24241 (patch)
treef9b51c1c2b718166185a8d5338d21271996c2358 /src/lib/merchant_api_get_template.c
parent69341625aad4b0a1b3642103226f11c2ec4d943c (diff)
downloadmerchant-83c11d7428c6d4ba2e1749630724c39811a24241.tar.gz
merchant-83c11d7428c6d4ba2e1749630724c39811a24241.tar.bz2
merchant-83c11d7428c6d4ba2e1749630724c39811a24241.zip
pull changes
Diffstat (limited to 'src/lib/merchant_api_get_template.c')
-rw-r--r--src/lib/merchant_api_get_template.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/merchant_api_get_template.c b/src/lib/merchant_api_get_template.c
index 920333b6..3edb98a1 100644
--- a/src/lib/merchant_api_get_template.c
+++ b/src/lib/merchant_api_get_template.c
@@ -93,15 +93,15 @@ handle_get_template_finished (void *cls,
case MHD_HTTP_OK:
{
const char *template_description;
- const char *image;
+ const char *pos_key;
json_t *template_contract;
bool rst_ok = true;
struct GNUNET_JSON_Specification spec[] = {
GNUNET_JSON_spec_string ("template_description",
&template_description),
GNUNET_JSON_spec_mark_optional (
- GNUNET_JSON_spec_string ("image",
- &image),
+ GNUNET_JSON_spec_string ("pos_key",
+ &pos_key),
NULL),
GNUNET_JSON_spec_json ("template_contract",
&template_contract),
@@ -118,7 +118,7 @@ handle_get_template_finished (void *cls,
tgh->cb (tgh->cb_cls,
&hr,
template_description,
- image,
+ pos_key,
template_contract);
GNUNET_JSON_parse_free (spec);
TALER_MERCHANT_template_get_cancel (tgh);