mirror of
https://github.com/Permissionless-Software-Foundation/bch-js.git
synced 2026-09-22 00:52:01 -07:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d59c1fe445 | ||
|
|
0a34611557 | ||
|
|
c13b029e99 | ||
|
|
b038e9a7fd |
+12
-3
@@ -1018,7 +1018,13 @@ class Utils {
|
||||
console.log('decodeOpReturn error: ', error)
|
||||
console.log(`decodeOpReturn error.message: ${error.message}`)
|
||||
|
||||
if (error.response && error.response.data) throw error.response.data
|
||||
// if (error.response && error.response.data) {
|
||||
// // throw error.response.data
|
||||
//
|
||||
// // error.bchApiMessage = error.message
|
||||
// // error.message = error.response.data
|
||||
// // error.data = error.response.data
|
||||
// }
|
||||
throw error
|
||||
}
|
||||
}
|
||||
@@ -1267,7 +1273,10 @@ class Utils {
|
||||
)
|
||||
// console.log(`slpData: ${JSON.stringify(slpData, null, 2)}`)
|
||||
} catch (err) {
|
||||
console.log(`error in _hydrateUtxo() from decodeOpReturn(${utxo.txid}): `, err)
|
||||
console.log(
|
||||
`error in _hydrateUtxo() from decodeOpReturn(${utxo.txid}): `,
|
||||
err
|
||||
)
|
||||
|
||||
// An error will be thrown if the txid is not SLP.
|
||||
// If error is for some other reason, like a 429 error, mark utxo as 'null'
|
||||
@@ -1279,7 +1288,7 @@ class Utils {
|
||||
err.message.indexOf('trailing data') === -1)
|
||||
) {
|
||||
console.log(
|
||||
'unknown error from decodeOpReturn(). Marking as \'null\'',
|
||||
"unknown error from decodeOpReturn(). Marking as 'null'",
|
||||
err
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user