From 3f7a0b69fa6ee97fa2d700bb1de2b37727d580b4 Mon Sep 17 00:00:00 2001 From: bogdan-rosianu <51945539+bogdan-rosianu@users.noreply.github.com> Date: Wed, 8 Jan 2025 16:56:57 +0200 Subject: [PATCH] better treat invalid transactions (#1428) --- .../transactions.batch/transactions.batch.service.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/endpoints/transactions.batch/transactions.batch.service.ts b/src/endpoints/transactions.batch/transactions.batch.service.ts index 2771e72e0..78bea9c89 100644 --- a/src/endpoints/transactions.batch/transactions.batch.service.ts +++ b/src/endpoints/transactions.batch/transactions.batch.service.ts @@ -146,7 +146,11 @@ export class TransactionsBatchService { return transactionBatchItem; } - transaction.hash = result.txHash; + if (result.txHash) { + transaction.hash = result.txHash; + } else { + transactionBatchItem.status = BatchTransactionStatus.invalid; + } return transactionBatchItem; }