Skip to content

Commit

Permalink
added value on error
Browse files Browse the repository at this point in the history
  • Loading branch information
owl352 committed Oct 3, 2024
1 parent 28bf7d4 commit a8d2488
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/api/src/models/Transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module.exports = class Transaction {
}
} catch (e) {
console.error(e)
decodedError = "Cannot deserialize"
}

return new Transaction(tx_hash, index, block_hash, block_height, type, data, timestamp, parseInt(gas_used), status, decodedError ?? error)
Expand Down

0 comments on commit a8d2488

Please sign in to comment.