Logging axios options in decodeOpReturn

This commit is contained in:
Chris Troutner
2021-03-26 18:29:48 -07:00
parent 8e64d854cf
commit 62ae67ceab
+5 -1
View File
@@ -957,6 +957,8 @@ class Utils {
throw new Error('txid string must be included.') 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. // CT: 2/24/21 Deprected GET in favor of POST, to pass IP address.
// Retrieve the transaction object from the full node. // Retrieve the transaction object from the full node.
const path = `${this.restURL}rawtransactions/getRawTransaction` const path = `${this.restURL}rawtransactions/getRawTransaction`
@@ -1842,7 +1844,9 @@ class Utils {
// Throw error if input is not an array. // Throw error if input is not an array.
if (!Array.isArray(utxos)) throw new Error('Input must be 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( const response = await _this.axios.post(
`${this.restURL}slp/hydrateUtxos`, `${this.restURL}slp/hydrateUtxos`,