mirror of
https://github.com/Permissionless-Software-Foundation/bch-js.git
synced 2026-09-21 16:51:59 -07:00
Merge pull request #237 from Permissionless-Software-Foundation/ct-unstable
fix(Utxo.get()): Added additional integration tests
This commit is contained in:
+1
-1
@@ -92,7 +92,7 @@ class UTXO {
|
||||
// Get SLP UTXOs from the psf-slp-indexer
|
||||
try {
|
||||
const slpUtxoData = await this.psfSlpIndexer.balance(addr)
|
||||
console.log(`slpUtxoData: ${JSON.stringify(slpUtxoData, null, 2)}`)
|
||||
// console.log(`slpUtxoData: ${JSON.stringify(slpUtxoData, null, 2)}`)
|
||||
|
||||
slpUtxos = slpUtxoData.balance.utxos
|
||||
} catch (err) {
|
||||
|
||||
@@ -87,7 +87,7 @@ describe('#UTXO', () => {
|
||||
const addr = 'simpleledger:qz5l5yzz9r09hw9aadcz53elp2knx6gyg5qk3s8md7'
|
||||
|
||||
const result = await bchjs.Utxo.get(addr)
|
||||
console.log(`result: ${JSON.stringify(result, null, 2)}`)
|
||||
// console.log(`result: ${JSON.stringify(result, null, 2)}`)
|
||||
|
||||
// Assert that minting batons are correctly identified.
|
||||
assert.isAbove(result.slpUtxos.type1.mintBatons.length, 0)
|
||||
@@ -117,10 +117,9 @@ describe('#UTXO', () => {
|
||||
const addr = 'simpleledger:qq7vp2kvejsql898a2760kuq6xz00h0a5vuwu9lywu'
|
||||
|
||||
const result = await bchjs.Utxo.get(addr)
|
||||
console.log(`result: ${JSON.stringify(result, null, 2)}`)
|
||||
// console.log(`result: ${JSON.stringify(result, null, 2)}`)
|
||||
|
||||
// assert.isAbove(result.slpUtxos.group.tokens.length, 0)
|
||||
// assert.isAbove(result.slpUtxos.group.mintBatons.length, 0)
|
||||
assert.isAbove(result.slpUtxos.nft.tokens.length, 0)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user