@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@psf/bch-js",
3
- "version": "6.2.12",
3
+ "version": "6.2.13",
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": [
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
- // it('should filter NFTs', async () => {
117
- // const addr = 'bitcoincash:qq7vp2kvejsql898a2760kuq6xz00h0a5vs4h72ysz'
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
- // })
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