@psf/bch-js 6.2.13 → 6.2.14
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
CHANGED
package/src/utxo.js
CHANGED
|
@@ -92,7 +92,7 @@ class UTXO {
|
|
|
92
92
|
// Get SLP UTXOs from the psf-slp-indexer
|
|
93
93
|
try {
|
|
94
94
|
const slpUtxoData = await this.psfSlpIndexer.balance(addr)
|
|
95
|
-
console.log(`slpUtxoData: ${JSON.stringify(slpUtxoData, null, 2)}`)
|
|
95
|
+
// console.log(`slpUtxoData: ${JSON.stringify(slpUtxoData, null, 2)}`)
|
|
96
96
|
|
|
97
97
|
slpUtxos = slpUtxoData.balance.utxos
|
|
98
98
|
} catch (err) {
|
|
@@ -87,7 +87,7 @@ describe('#UTXO', () => {
|
|
|
87
87
|
const addr = 'simpleledger:qz5l5yzz9r09hw9aadcz53elp2knx6gyg5qk3s8md7'
|
|
88
88
|
|
|
89
89
|
const result = await bchjs.Utxo.get(addr)
|
|
90
|
-
console.log(`result: ${JSON.stringify(result, null, 2)}`)
|
|
90
|
+
// console.log(`result: ${JSON.stringify(result, null, 2)}`)
|
|
91
91
|
|
|
92
92
|
// Assert that minting batons are correctly identified.
|
|
93
93
|
assert.isAbove(result.slpUtxos.type1.mintBatons.length, 0)
|
|
@@ -117,10 +117,9 @@ describe('#UTXO', () => {
|
|
|
117
117
|
const addr = 'simpleledger:qq7vp2kvejsql898a2760kuq6xz00h0a5vuwu9lywu'
|
|
118
118
|
|
|
119
119
|
const result = await bchjs.Utxo.get(addr)
|
|
120
|
-
console.log(`result: ${JSON.stringify(result, null, 2)}`)
|
|
120
|
+
// console.log(`result: ${JSON.stringify(result, null, 2)}`)
|
|
121
121
|
|
|
122
|
-
|
|
123
|
-
// assert.isAbove(result.slpUtxos.group.mintBatons.length, 0)
|
|
122
|
+
assert.isAbove(result.slpUtxos.nft.tokens.length, 0)
|
|
124
123
|
})
|
|
125
124
|
})
|
|
126
125
|
})
|