Merge pull request #269 from Permissionless-Software-Foundation/ct-unstable

fix(utxo.get()): Handling corner-case when SLP indexer is not returni…
This commit is contained in:
Chris Troutner
2025-06-29 14:38:18 -07:00
committed by GitHub
+3 -1
View File
@@ -153,7 +153,9 @@ class UTXO {
// the indexer.
const txData = await this.psfSlpIndexer.tx(thisUtxo.tx_hash)
// console.log(`txData: ${JSON.stringify(txData, null, 2)}`)
if (txData.txData.isValidSlp === null) {
// txData.txData === undefined if the SLP indexer is syncing.
if (!txData.txData || txData.txData.isValidSlp === null) {
thisUtxo.isSlp = null
} else {
thisUtxo.isSlp = false