-fix TS2345: Argument of type 'AmountJson' is not assignable to parameter of type 'never'

This commit is contained in:
Sebastian 2022-03-23 14:20:18 -03:00
parent f187c1e13f
commit 136c39ba9f
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -120,7 +120,7 @@ export async function getTotalPaymentCost(
return ws.db return ws.db
.mktx((x) => ({ coins: x.coins, denominations: x.denominations })) .mktx((x) => ({ coins: x.coins, denominations: x.denominations }))
.runReadOnly(async (tx) => { .runReadOnly(async (tx) => {
const costs = []; const costs: AmountJson[] = [];
for (let i = 0; i < pcs.coinPubs.length; i++) { for (let i = 0; i < pcs.coinPubs.length; i++) {
const coin = await tx.coins.get(pcs.coinPubs[i]); const coin = await tx.coins.get(pcs.coinPubs[i]);
if (!coin) { if (!coin) {