From 6843710fd200553e4390d1df74e188384d3b2ae1 Mon Sep 17 00:00:00 2001 From: miiu Date: Tue, 13 Aug 2024 16:57:25 +0300 Subject: [PATCH] fixes after review --- process/transactionProcessor.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/process/transactionProcessor.go b/process/transactionProcessor.go index 1cafbe45..e422d97f 100644 --- a/process/transactionProcessor.go +++ b/process/transactionProcessor.go @@ -502,7 +502,8 @@ func (tp *TransactionProcessor) computeTransactionStatus(tx *transaction.ApiTran } } - if checkIfCompleted(allLogs) { + isUnsigned := tx.Type == string(transaction.TxTypeUnsigned) + if checkIfCompleted(allLogs) || isUnsigned { return &data.ProcessStatusResponse{ Status: string(transaction.TxStatusSuccess), } @@ -896,6 +897,7 @@ func (tp *TransactionProcessor) extraShardFromSCRs(scrs []*transaction.ApiSmartC log.Warn("cannot compute shard ID from sender address", "sender address", scr.SndAddr, "error", err.Error()) + continue } _, found := shardIDWasFetch[sndShardID] @@ -911,6 +913,7 @@ func (tp *TransactionProcessor) extraShardFromSCRs(scrs []*transaction.ApiSmartC log.Warn("cannot compute shard ID from receiver address", "receiver address", scr.RcvAddr, "error", err.Error()) + continue } _, found = shardIDWasFetch[rcvShardID]