mirror of
https://github.com/Permissionless-Software-Foundation/bch-js.git
synced 2026-09-22 00:52:01 -07:00
Removing debugging stuff
This commit is contained in:
+1
-1
@@ -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"
|
||||
},
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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.`)
|
||||
|
||||
|
||||
@@ -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", () => {
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user