diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-07-31 21:48:36 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-07-31 21:48:36 +0200 |
commit | 33a28efef74d1db0c08a8e9e3facf3656b4b29e1 (patch) | |
tree | e35dd51b3364f9c41a40a6e8a8c715b1b623d35c /src/exchangedb/test_exchangedb.c | |
parent | fde9dc80f6e6a5fe4c5856b2ed78e6c024528c43 (diff) | |
download | exchange-33a28efef74d1db0c08a8e9e3facf3656b4b29e1.tar.xz |
-more json_pack fixes
Diffstat (limited to 'src/exchangedb/test_exchangedb.c')
-rw-r--r-- | src/exchangedb/test_exchangedb.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c index 462134275..fd11de2eb 100644 --- a/src/exchangedb/test_exchangedb.c +++ b/src/exchangedb/test_exchangedb.c @@ -1348,10 +1348,11 @@ test_wire_out (struct TALER_EXCHANGEDB_Session *session, { json_t *wire_out_account; - wire_out_account = json_pack ("{s:s,s:s}", - "payto_uri", - "payto://x-taler-bank/localhost:8080/1", - "salt", "this-is-my-salt"); + wire_out_account = GNUNET_JSON_PACK ( + GNUNET_JSON_pack_string ("payto_uri", + "payto://x-taler-bank/localhost:8080/1"), + GNUNET_JSON_pack_string ("salt", + "this-is-my-salt")); if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != plugin->store_wire_transfer_out (plugin->cls, session, @@ -1567,9 +1568,11 @@ run (void *cls) rh = NULL; session = NULL; deposit.coin.denom_sig.rsa_signature = NULL; - wire = json_pack ("{s:s, s:s}", - "payto_uri", "payto://sepa/DE67830654080004822650", - "salt", "this-is-a-salt-value"); + wire = GNUNET_JSON_PACK ( + GNUNET_JSON_pack_string ("payto_uri", + "payto://sepa/DE67830654080004822650"), + GNUNET_JSON_pack_string ("salt", + "this-is-a-salt-value")); ZR_BLK (&cbc); ZR_BLK (&cbc2); if (NULL == |