summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_insert_deposit.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-07-31 21:48:36 +0200
committerChristian Grothoff <christian@grothoff.org>2021-07-31 21:48:36 +0200
commit33a28efef74d1db0c08a8e9e3facf3656b4b29e1 (patch)
treee35dd51b3364f9c41a40a6e8a8c715b1b623d35c /src/testing/testing_api_cmd_insert_deposit.c
parentfde9dc80f6e6a5fe4c5856b2ed78e6c024528c43 (diff)
downloadexchange-33a28efef74d1db0c08a8e9e3facf3656b4b29e1.tar.gz
exchange-33a28efef74d1db0c08a8e9e3facf3656b4b29e1.tar.bz2
exchange-33a28efef74d1db0c08a8e9e3facf3656b4b29e1.zip
-more json_pack fixes
Diffstat (limited to 'src/testing/testing_api_cmd_insert_deposit.c')
-rw-r--r--src/testing/testing_api_cmd_insert_deposit.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/testing/testing_api_cmd_insert_deposit.c b/src/testing/testing_api_cmd_insert_deposit.c
index 06f2dbe0..607baeef 100644
--- a/src/testing/testing_api_cmd_insert_deposit.c
+++ b/src/testing/testing_api_cmd_insert_deposit.c
@@ -189,9 +189,11 @@ insert_deposit_run (void *cls,
"payto://x-taler-bank/localhost/%s",
ids->merchant_account);
deposit.receiver_wire_account
- = json_pack ("{s:s, s:s}",
- "salt", "this-is-a-salt-value",
- "payto_uri", str);
+ = GNUNET_JSON_PACK (
+ GNUNET_JSON_pack_string ("salt",
+ "this-is-a-salt-value"),
+ GNUNET_JSON_pack_string ("payto_uri",
+ str));
GNUNET_free (str);
}