Skip to content

Commit

Permalink
better treat invalid transactions (#1428)
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-rosianu authored Jan 8, 2025
1 parent 4ac6654 commit 3f7a0b6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3f7a0b6

Please sign in to comment.