From 9c24b4dca54bc9c7c7bbc39ace714d33bc50338e Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Tue, 25 Feb 2020 09:28:17 -0800 Subject: [PATCH] fix(SLP): Passing API tokens to SLP library --- src/slp/slp.js | 3 ++- test/integration/slp.js | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/slp/slp.js b/src/slp/slp.js index 777a9b7..4b67564 100644 --- a/src/slp/slp.js +++ b/src/slp/slp.js @@ -19,13 +19,14 @@ class SLP { constructor(config) { const tmp = {} if (!config || !config.restURL) { - tmp.restURL = `https://api.bchjs.cash/v3/` + tmp.restURL = `https://api.fullstack.cash/v3/` } else { tmp.restURL = config.restURL tmp.apiToken = config.apiToken } this.restURL = tmp.restURL + this.apiToken = tmp.apiToken this.Address = new Address(tmp) this.ECPair = ECPair diff --git a/test/integration/slp.js b/test/integration/slp.js index 5f36768..ae39ff6 100644 --- a/test/integration/slp.js +++ b/test/integration/slp.js @@ -17,6 +17,11 @@ util.inspect.defaultOptions = { } describe(`#SLP`, () => { + before(() => { + console.log(`bchjs.SLP.restURL: ${bchjs.SLP.restURL}`) + console.log(`bchjs.SLP.apiToken: ${bchjs.SLP.apiToken}`) + }) + describe("#util", () => { describe("#list", () => { it(`should get information on the Spice token`, async () => {