From 62ae67ceab485d56b8460a99be7544a4959a3095 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Fri, 26 Mar 2021 18:29:48 -0700 Subject: [PATCH] Logging axios options in decodeOpReturn --- src/slp/utils.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/slp/utils.js b/src/slp/utils.js index f533e7a..74294fd 100644 --- a/src/slp/utils.js +++ b/src/slp/utils.js @@ -957,6 +957,8 @@ class Utils { throw new Error('txid string must be included.') } + console.log(`axiosOptions: ${JSON.stringify(_this.axiosOptions, null, 2)}`) + // CT: 2/24/21 Deprected GET in favor of POST, to pass IP address. // Retrieve the transaction object from the full node. const path = `${this.restURL}rawtransactions/getRawTransaction` @@ -1842,7 +1844,9 @@ class Utils { // Throw error if input is not an array. if (!Array.isArray(utxos)) throw new Error('Input must be an array.') - console.log(`axiosOptions: ${JSON.stringify(_this.axiosOptions, null, 2)}`) + console.log( + `axiosOptions: ${JSON.stringify(_this.axiosOptions, null, 2)}` + ) const response = await _this.axios.post( `${this.restURL}slp/hydrateUtxos`,