From 136c39ba9fb86080beaa27cd9e0c4d5086a2d691 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 23 Mar 2022 14:20:18 -0300 Subject: [PATCH] -fix TS2345: Argument of type 'AmountJson' is not assignable to parameter of type 'never' --- packages/taler-wallet-core/src/operations/pay.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/taler-wallet-core/src/operations/pay.ts b/packages/taler-wallet-core/src/operations/pay.ts index dcfd6841d..1c1a0f506 100644 --- a/packages/taler-wallet-core/src/operations/pay.ts +++ b/packages/taler-wallet-core/src/operations/pay.ts @@ -120,7 +120,7 @@ export async function getTotalPaymentCost( return ws.db .mktx((x) => ({ coins: x.coins, denominations: x.denominations })) .runReadOnly(async (tx) => { - const costs = []; + const costs: AmountJson[] = []; for (let i = 0; i < pcs.coinPubs.length; i++) { const coin = await tx.coins.get(pcs.coinPubs[i]); if (!coin) {