@psf/bch-js 6.2.12 → 6.2.13
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/slp/nft1.js
CHANGED
|
@@ -147,7 +147,7 @@ class Nft1 {
|
|
|
147
147
|
// Loop through the tokenUtxos array and find the minting baton.
|
|
148
148
|
let mintBatonUtxo
|
|
149
149
|
for (let i = 0; i < tokenUtxos.length; i++) {
|
|
150
|
-
if (tokenUtxos[i].utxoType === 'minting-baton') {
|
|
150
|
+
if (tokenUtxos[i].utxoType === 'minting-baton' || tokenUtxos[i].type === 'baton') {
|
|
151
151
|
mintBatonUtxo = tokenUtxos[i]
|
|
152
152
|
}
|
|
153
153
|
}
|
|
@@ -113,15 +113,15 @@ describe('#UTXO', () => {
|
|
|
113
113
|
assert.isAbove(result.slpUtxos.group.mintBatons.length, 0)
|
|
114
114
|
})
|
|
115
115
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
116
|
+
it('should filter NFTs', async () => {
|
|
117
|
+
const addr = 'simpleledger:qq7vp2kvejsql898a2760kuq6xz00h0a5vuwu9lywu'
|
|
118
|
+
|
|
119
|
+
const result = await bchjs.Utxo.get(addr)
|
|
120
|
+
console.log(`result: ${JSON.stringify(result, null, 2)}`)
|
|
121
|
+
|
|
122
|
+
// assert.isAbove(result.slpUtxos.group.tokens.length, 0)
|
|
123
|
+
// assert.isAbove(result.slpUtxos.group.mintBatons.length, 0)
|
|
124
|
+
})
|
|
125
125
|
})
|
|
126
126
|
})
|
|
127
127
|
|