Skip to content

Commit

Permalink
Add console.error if wallet output not found for wallet transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-zimnoch committed Jul 12, 2023
1 parent 10ab6da commit 0e369b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions typescript/src/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 0e369b2

Please sign in to comment.