From 0e369b2f3ba1b80e23b324c5a59bcd5bf88c699b Mon Sep 17 00:00:00 2001 From: Lukasz Zimnoch Date: Wed, 12 Jul 2023 11:08:28 +0200 Subject: [PATCH] Add `console.error` if wallet output not found for wallet transaction --- typescript/src/wallet.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/typescript/src/wallet.ts b/typescript/src/wallet.ts index 2d1bccbf3..7f053b79a 100644 --- a/typescript/src/wallet.ts +++ b/typescript/src/wallet.ts @@ -299,6 +299,9 @@ export async function determineWalletMainUtxo( // Should never happen as all transactions come from wallet history. Just // in case check whether the wallet output was actually found. if (outputIndex < 0) { + console.error( + `wallet output for transaction ${walletTransaction.transactionHash.toString()} not found` + ) continue }