From 11330afbd6ba439788c45b10ec118950dff130ce Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Tue, 25 Feb 2020 11:14:28 -0800 Subject: [PATCH] Removing debugging stuff --- package.json | 2 +- src/bch-js.js | 7 ------- src/slp/slp.js | 2 -- src/slp/utils.js | 5 ----- test/integration/slp.js | 8 ++++---- test/integration/testnet/blockbook.js | 2 +- test/integration/testnet/blockchain.js | 2 +- test/integration/testnet/rawtransaction.js | 2 +- test/integration/testnet/slp.js | 2 +- test/integration/testnet/util.js | 2 +- 10 files changed, 10 insertions(+), 24 deletions(-) diff --git a/package.json b/package.json index 8b6acdd..19867f4 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "test:integration": "mocha --timeout 30000 test/integration", "test:integration:testnet": "mocha --timeout 30000 test/integration/testnet", "test:integration:local": "RESTURL=http://localhost:3000/v3/ mocha --timeout 30000 test/integration", - "test:integration:api": "RESTURL=https://api.bchjs.cash/v3/ mocha --timeout 30000 test/integration", + "test:integration:api": "RESTURL=https://api.fullstack.cash/v3/ mocha --timeout 30000 test/integration", "coverage": "nyc report --reporter=text-lcov | coveralls", "docs": "./node_modules/.bin/apidoc -i src/ -o docs" }, diff --git a/src/bch-js.js b/src/bch-js.js index 639a4fd..e3cdb7d 100644 --- a/src/bch-js.js +++ b/src/bch-js.js @@ -34,10 +34,6 @@ const Ninsight = require("./ninsight") class BCHJS { constructor(config) { - console.log(`BCHJS constructor config: ${JSON.stringify(config, null, 2)}`) - console.log(`process.env.RESTURL: ${process.env.RESTURL}`) - console.log(`DEFAULT_REST_API: ${DEFAULT_REST_API}`) - // Try to retrieve the REST API URL from different sources. if (config && config.restURL && config.restURL !== "") this.restURL = config.restURL @@ -45,8 +41,6 @@ class BCHJS { this.restURL = process.env.RESTURL else this.restURL = DEFAULT_REST_API - console.log(`BCHJS constructor, this.restURL: ${this.restURL}`) - // Retrieve the apiToken this.apiToken = "" // default value. if (config && config.apiToken && config.apiToken !== "") @@ -94,7 +88,6 @@ 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 7b60755..4b67564 100644 --- a/src/slp/slp.js +++ b/src/slp/slp.js @@ -28,8 +28,6 @@ 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 18f148d..ea5bc86 100644 --- a/src/slp/utils.js +++ b/src/slp/utils.js @@ -9,8 +9,6 @@ let _this class Utils { constructor(config) { - console.log(`SLP Utils config: ${JSON.stringify(config, null, 2)}`) - this.restURL = config.restURL this.apiToken = config.apiToken @@ -1110,9 +1108,6 @@ class Utils { // https://github.com/Bitcoin-com/slp-sdk/issues/84 async tokenUtxoDetails(utxos) { try { - console.log(`tokenUtxoDetails, apiToken: ${_this.apiToken}`) - console.log(`tokenUtxoDetails, restURL: ${_this.restURL}`) - // Throw error if input is not an array. if (!Array.isArray(utxos)) throw new Error(`Input must be an array.`) diff --git a/test/integration/slp.js b/test/integration/slp.js index ae39ff6..2218c28 100644 --- a/test/integration/slp.js +++ b/test/integration/slp.js @@ -17,10 +17,10 @@ util.inspect.defaultOptions = { } describe(`#SLP`, () => { - before(() => { - console.log(`bchjs.SLP.restURL: ${bchjs.SLP.restURL}`) - console.log(`bchjs.SLP.apiToken: ${bchjs.SLP.apiToken}`) - }) + // before(() => { + // console.log(`bchjs.SLP.restURL: ${bchjs.SLP.restURL}`) + // console.log(`bchjs.SLP.apiToken: ${bchjs.SLP.apiToken}`) + // }) describe("#util", () => { describe("#list", () => { diff --git a/test/integration/testnet/blockbook.js b/test/integration/testnet/blockbook.js index 2b4c878..7054778 100644 --- a/test/integration/testnet/blockbook.js +++ b/test/integration/testnet/blockbook.js @@ -6,7 +6,7 @@ const chai = require("chai") const assert = chai.assert -let RESTURL = `https://tapi.bchjs.cash/v3/` +let RESTURL = `https://tapi.fullstack.cash/v3/` if (process.env.RESTURL) RESTURL = process.env.RESTURL const BCHJS = require("../../../src/bch-js") diff --git a/test/integration/testnet/blockchain.js b/test/integration/testnet/blockchain.js index 9e8edcb..0549b58 100644 --- a/test/integration/testnet/blockchain.js +++ b/test/integration/testnet/blockchain.js @@ -10,7 +10,7 @@ const chai = require("chai") const assert = chai.assert -let RESTURL = `https://tapi.bchjs.cash/v3/` +let RESTURL = `https://tapi.fullstack.cash/v3/` if (process.env.RESTURL) RESTURL = process.env.RESTURL const BCHJS = require("../../../src/bch-js") diff --git a/test/integration/testnet/rawtransaction.js b/test/integration/testnet/rawtransaction.js index fc60c56..946e64e 100644 --- a/test/integration/testnet/rawtransaction.js +++ b/test/integration/testnet/rawtransaction.js @@ -8,7 +8,7 @@ const chai = require("chai") const assert = chai.assert -let RESTURL = `https://tapi.bchjs.cash/v3/` +let RESTURL = `https://tapi.fullstack.cash/v3/` if (process.env.RESTURL) RESTURL = process.env.RESTURL const BCHJS = require("../../../src/bch-js") diff --git a/test/integration/testnet/slp.js b/test/integration/testnet/slp.js index 111b178..aef20ec 100644 --- a/test/integration/testnet/slp.js +++ b/test/integration/testnet/slp.js @@ -5,7 +5,7 @@ const chai = require("chai") const assert = chai.assert -let RESTURL = `https://tapi.bchjs.cash/v3/` +let RESTURL = `https://tapi.fullstack.cash/v3/` if (process.env.RESTURL) RESTURL = process.env.RESTURL const BCHJS = require("../../../src/bch-js") diff --git a/test/integration/testnet/util.js b/test/integration/testnet/util.js index 126f057..8c3af4e 100644 --- a/test/integration/testnet/util.js +++ b/test/integration/testnet/util.js @@ -6,7 +6,7 @@ const chai = require("chai") const assert = chai.assert -let RESTURL = `https://tapi.bchjs.cash/v3/` +let RESTURL = `https://tapi.fullstack.cash/v3/` if (process.env.RESTURL) RESTURL = process.env.RESTURL const BCHJS = require("../../../src/bch-js")