From d4dbce8df01a0736c735c2ecee5fbf294a055b97 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Sat, 27 Feb 2021 09:31:16 -0800 Subject: [PATCH] fix(decodeOpReturn): Adding additional debugging for errors --- src/slp/utils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slp/utils.js b/src/slp/utils.js index 2f6d818..3fbb335 100644 --- a/src/slp/utils.js +++ b/src/slp/utils.js @@ -1016,6 +1016,8 @@ class Utils { return tokenData } catch (error) { console.log('decodeOpReturn error: ', error) + console.log(`decodeOpReturn error.message: ${error.message}`) + if (error.response && error.response.data) throw error.response.data throw error } @@ -1239,6 +1241,7 @@ class Utils { // This is a private function that is called by tokenUtxoDetails(). // It loops through an array of UTXOs and tries to hydrate them with SLP // token information from the OP_RETURN data. + // If this function hits a rate limit... TODO: describe specific behavior. async _hydrateUtxo (utxos, usrObj = null) { try { const decodeOpReturnCache = {}