From a8d2488dd75b81a199fa495e4fd6ba3809ee5a73 Mon Sep 17 00:00:00 2001 From: owl352 Date: Fri, 4 Oct 2024 01:34:58 +0300 Subject: [PATCH] added value on error --- packages/api/src/models/Transaction.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/api/src/models/Transaction.js b/packages/api/src/models/Transaction.js index 8d53e4713..581c9026c 100644 --- a/packages/api/src/models/Transaction.js +++ b/packages/api/src/models/Transaction.js @@ -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)