From 124c279b23573605822c9997a15356679dd0ee1d Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Tue, 25 Feb 2020 10:22:14 -0800 Subject: [PATCH] More debugging of SLP lib --- src/bch-js.js | 1 + src/slp/slp.js | 2 ++ src/slp/utils.js | 2 ++ 3 files changed, 5 insertions(+) diff --git a/src/bch-js.js b/src/bch-js.js index e3cdb7d..7055ad5 100644 --- a/src/bch-js.js +++ b/src/bch-js.js @@ -88,6 +88,7 @@ class BCHJS { this.Wallet = Wallet this.Schnorr = new Schnorr(libConfig) + console.log(`SLP libConfig: ${JSON.stringify(libConfig, null, 2)}`) this.SLP = new SLP(libConfig) this.SLP.HDNode = this.HDNode } diff --git a/src/slp/slp.js b/src/slp/slp.js index 4b67564..7b60755 100644 --- a/src/slp/slp.js +++ b/src/slp/slp.js @@ -28,6 +28,8 @@ class SLP { this.restURL = tmp.restURL this.apiToken = tmp.apiToken + console.log(`SLP constructor tmp: ${JSON.stringify(tmp, null, 2)}`) + this.Address = new Address(tmp) this.ECPair = ECPair this.TokenType1 = new TokenType1(this.restURL) diff --git a/src/slp/utils.js b/src/slp/utils.js index 1bf3531..18f148d 100644 --- a/src/slp/utils.js +++ b/src/slp/utils.js @@ -9,6 +9,8 @@ let _this class Utils { constructor(config) { + console.log(`SLP Utils config: ${JSON.stringify(config, null, 2)}`) + this.restURL = config.restURL this.apiToken = config.apiToken