From 754b4cd80735e003c2acea8f952cc7e5f32c883e Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Wed, 24 Feb 2021 16:42:54 -0800 Subject: [PATCH] fix(decodeOpReturn): replacing ip with usrObj --- src/slp/utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/slp/utils.js b/src/slp/utils.js index 25c1412..4c2a7d4 100644 --- a/src/slp/utils.js +++ b/src/slp/utils.js @@ -926,7 +926,7 @@ class Utils { * */ // Reimplementation of decodeOpReturn() using slp-parser. - async decodeOpReturn (txid, cache = null, ip = null) { + async decodeOpReturn (txid, cache = null, usrObj = null) { // The cache object is an in-memory cache (JS Object) that can be passed // into this function. It helps if multiple vouts from the same TXID are // being evaluated. In that case, it can significantly reduce the number @@ -943,7 +943,7 @@ class Utils { if (cachedVal) return cachedVal } - console.log(`decodeOpReturn ip: ${ip}`) + console.log(`decodeOpReturn usrObj: ${JSON.stringify(usrObj, null, 2)}`) try { // Validate the txid input. @@ -963,7 +963,7 @@ class Utils { { verbose: true, txids: [txid], - ip + usrObj }, _this.axiosOptions )