File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
test/integration/chains/bchn Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -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
}
Original file line number Diff line number Diff line change @@ -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
You can’t perform that action at this time.
0 commit comments