List NFT children per group

This commit is contained in:
Stoyan Zhekov
2021-05-14 21:17:07 +09:00
parent cdf8171994
commit 92a89a543d
5 changed files with 114 additions and 5 deletions
+11
View File
@@ -264,6 +264,17 @@ describe('#SLP', () => {
})
})
})
describe('#nft1', () => {
describe('#listNFTGroupChildren', () => {
it.only('should return array of children GENESIS transactions IDs', async () => {
const groupId = '68cd33ecd909068fbea318ae5ff1d6207cf754e53b191327d6d73b6916424c0a'
const result = await bchjs.SLP.NFT1.listNFTGroupChildren(groupId)
// console.log(`result: ${JSON.stringify(result, null, 2)}`)
assert.property(result, 'nftChildren')
assert.isArray(result.nftChildren)
})
})
})
})
// Promise-based sleep function