feat(whitelist): Added method for getting SLPDB whitelist

This commit is contained in:
Chris Troutner
2020-12-05 14:02:39 -08:00
parent 28f08f02ac
commit 315cb4f254
5 changed files with 140 additions and 2 deletions
+11
View File
@@ -634,6 +634,17 @@ describe(`#SLP`, () => {
assert.equal(result.isValid, true)
})
})
describe("#getWhitelist", () => {
it("should get the whitelist", async () => {
const result = await bchjs.SLP.Utils.getWhitelist()
// console.log(`result: ${JSON.stringify(result, null, 2)}`)
assert.isArray(result)
assert.property(result[0], "name")
assert.property(result[1], "tokenId")
})
})
})
describe("#tokentype1", () => {