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