@psf/bch-js 6.8.0 → 6.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/utxo.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@psf/bch-js",
|
|
3
|
-
"version": "6.8.
|
|
3
|
+
"version": "6.8.2",
|
|
4
4
|
"description": "A JavaScript library for working with Bitcoin Cash, eCash, and SLP Tokens",
|
|
5
5
|
"author": "Chris Troutner <chris.troutner@gmail.com>",
|
|
6
6
|
"contributors": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@psf/bitcoincash-ops": "2.0.0",
|
|
43
43
|
"@psf/bitcoincashjs-lib": "4.0.3",
|
|
44
44
|
"@psf/coininfo": "4.0.0",
|
|
45
|
-
"axios": "
|
|
45
|
+
"axios": "1.12.2",
|
|
46
46
|
"bc-bip68": "1.0.5",
|
|
47
47
|
"bchaddrjs-slp": "0.2.5",
|
|
48
48
|
"bigi": "1.4.2",
|
package/src/utxo.js
CHANGED
|
@@ -153,7 +153,9 @@ class UTXO {
|
|
|
153
153
|
// the indexer.
|
|
154
154
|
const txData = await this.psfSlpIndexer.tx(thisUtxo.tx_hash)
|
|
155
155
|
// console.log(`txData: ${JSON.stringify(txData, null, 2)}`)
|
|
156
|
-
|
|
156
|
+
|
|
157
|
+
// txData.txData === undefined if the SLP indexer is syncing.
|
|
158
|
+
if (!txData.txData || txData.txData.isValidSlp === null) {
|
|
157
159
|
thisUtxo.isSlp = null
|
|
158
160
|
} else {
|
|
159
161
|
thisUtxo.isSlp = false
|