From 7058f77ee9688a8699c8daaae747460786524d26 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Sat, 27 Feb 2021 08:37:29 -0800 Subject: [PATCH] fix(decodeOpReturn): Debugging error handling by decodeOpReturn() --- package.json | 2 +- src/slp/utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5ba9597..e325ced 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "test:integration:local:testnet": "RESTURL=http://localhost:4000/v4/ mocha --timeout 30000 test/integration/chains/testnet", "test:integration:decatur:bchn": "export RESTURL=http://192.168.0.36:3000/v4/ && mocha --timeout 30000 test/integration/", "test:temp": "export RESTURL=http://localhost:3000/v4/ && mocha --timeout 30000 -g '#hydrateUtxos' test/integration/", - "test:temp2": "mocha --timeout=30000 -g '#Util' test/unit/", + "test:temp2": "mocha --timeout=30000 -g '#decodeOpReturn' test/unit/", "test:temp3": "export RESTURL=https://bchn.fullstack.cash/v4/ && mocha --timeout 30000 -g '#hydrateUtxos' test/integration/", "test:temp4": "export RESTURL=http://localhost:3000/v4/ && mocha --timeout 30000 -g '#decodeOpReturn' test/integration/", "coverage": "nyc report --reporter=text-lcov | coveralls", diff --git a/src/slp/utils.js b/src/slp/utils.js index e1fd012..c78f761 100644 --- a/src/slp/utils.js +++ b/src/slp/utils.js @@ -1015,7 +1015,7 @@ class Utils { return tokenData } catch (error) { - // console.log('decodeOpReturn error: ', error) + console.log('decodeOpReturn error: ', error) if (error.response && error.response.data) throw error.response.data throw error }