Skip to content

Commit

Permalink
fixes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
miiu96 committed Aug 13, 2024
1 parent 73edf0b commit 57eff57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion process/transactionProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,8 @@ func (tp *TransactionProcessor) computeTransactionStatus(tx *transaction.ApiTran
}
}

if checkIfCompleted(allLogs) {
isUnsigned := string(transaction.TxTypeUnsigned) == tx.Type
if checkIfCompleted(allLogs) || isUnsigned {
return &data.ProcessStatusResponse{
Status: string(transaction.TxStatusSuccess),
}
Expand Down Expand Up @@ -937,6 +938,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]
Expand All @@ -952,6 +954,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]
Expand Down

0 comments on commit 57eff57

Please sign in to comment.