-fix TS2345: Argument of type 'AmountJson' is not assignable to parameter of type 'never'
This commit is contained in:
parent
f187c1e13f
commit
136c39ba9f
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user