diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-08-22 23:15:08 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-08-22 23:15:08 +0200 |
commit | c98d960d1badd1eeb834bacbc133960e2f86d304 (patch) | |
tree | fc94b246475ff387cf5aa4d8bbc3f0aa2f4b7d65 /src/backenddb/pg_lookup_transfers.c | |
parent | 525426db10c179fcacd19487f6c22cac837b2d40 (diff) |
add currency to amounts in merchant DB
Diffstat (limited to 'src/backenddb/pg_lookup_transfers.c')
-rw-r--r-- | src/backenddb/pg_lookup_transfers.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backenddb/pg_lookup_transfers.c b/src/backenddb/pg_lookup_transfers.c index 9fb5cdcb..57663729 100644 --- a/src/backenddb/pg_lookup_transfers.c +++ b/src/backenddb/pg_lookup_transfers.c @@ -72,7 +72,6 @@ lookup_transfers_cb (void *cls, unsigned int num_results) { struct LookupTransfersContext *ltc = cls; - struct PostgresClosure *pg = ltc->pg; for (unsigned int i = 0; i<num_results; i++) { @@ -86,8 +85,8 @@ lookup_transfers_cb (void *cls, uint8_t verified8; uint8_t confirmed8; struct GNUNET_PQ_ResultSpec rs[] = { - TALER_PQ_RESULT_SPEC_AMOUNT ("credit_amount", - &credit_amount), + TALER_PQ_result_spec_amount_with_currency ("credit_amount", + &credit_amount), GNUNET_PQ_result_spec_auto_from_type ("wtid", &wtid), GNUNET_PQ_result_spec_string ("payto_uri", |