From aae06c680f7d31d0a2f2a2059b57a8d7c575d3c7 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 8 Sep 2020 21:03:10 +0530 Subject: DB tweaks --- packages/taler-wallet-core/src/operations/pay.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/taler-wallet-core/src/operations/pay.ts') diff --git a/packages/taler-wallet-core/src/operations/pay.ts b/packages/taler-wallet-core/src/operations/pay.ts index a6f941ff1..3dc5e1600 100644 --- a/packages/taler-wallet-core/src/operations/pay.ts +++ b/packages/taler-wallet-core/src/operations/pay.ts @@ -131,7 +131,7 @@ export async function getTotalPaymentCost( } const denom = await ws.db.get(Stores.denominations, [ coin.exchangeBaseUrl, - coin.denomPub, + coin.denomPubHash, ]); if (!denom) { throw Error( @@ -332,7 +332,7 @@ async function getCoinsForPayment( // coins have the same currency const firstDenom = await ws.db.get(Stores.denominations, [ exchange.baseUrl, - coins[0].denomPub, + coins[0].denomPubHash, ]); if (!firstDenom) { throw Error("db inconsistent"); @@ -342,7 +342,7 @@ async function getCoinsForPayment( for (const coin of coins) { const denom = await ws.db.get(Stores.denominations, [ exchange.baseUrl, - coin.denomPub, + coin.denomPubHash, ]); if (!denom) { throw Error("db inconsistent"); @@ -1148,7 +1148,7 @@ export async function confirmPay( } const denom = await ws.db.get(Stores.denominations, [ coin.exchangeBaseUrl, - coin.denomPub, + coin.denomPubHash, ]); if (!denom) { throw Error( -- cgit v1.2.3