commit 44ef77be8ce3ae7bb89f3c10a4f864981f1d0481 parent d1461b2485cb8a633e93f4ed59c560619f08af72 Author: Christian Blättler <blatc2@bfh.ch> Date: Sat, 11 May 2024 16:04:53 +0200 misc Diffstat:
4 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c @@ -2942,6 +2942,7 @@ phase_parse_wallet_data (struct PayContext *pc) struct GNUNET_HashCode h_outputs_req; pc->choice_index = -1; + // TODO: Ensure that wallet_data must be set for contracts with choices. if (NULL == pc->wallet_data) { pc->phase = PP_CHECK_CONTRACT; diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c @@ -1541,7 +1541,6 @@ set_token_family (struct OrderContext *oc, GNUNET_free (key_details.token_family.slug); { - struct TALER_MerchantContractTokenFamilyKey key; if (NULL == family) diff --git a/src/backenddb/merchant-0006.sql b/src/backenddb/merchant-0006.sql @@ -30,7 +30,7 @@ ALTER TABLE merchant_contract_terms ADD COLUMN choice_index INT2 DEFAULT NULL; COMMENT ON COLUMN merchant_contract_terms.choice_index - IS 'Index of selected choice. Refers the the `choices` array in the contract terms. NULL for contracts without choices.'; + IS 'Index of selected choice. Refers to the `choices` array in the contract terms. NULL for contracts without choices.'; -- Complete transaction COMMIT; diff --git a/src/backenddb/pg_insert_token_family_key.c b/src/backenddb/pg_insert_token_family_key.c @@ -53,7 +53,6 @@ TMH_PG_insert_token_family_key (void *cls, &pub_hash); break; case GNUNET_CRYPTO_BSA_INVALID: - /* case listed to make compilers happy */ return GNUNET_DB_STATUS_HARD_ERROR; }