fix(decodeOpReturn): Debugging error handling by decodeOpReturn()

This commit is contained in:
Chris Troutner
2021-02-27 08:37:29 -08:00
parent ad580d67a4
commit 7058f77ee9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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
}