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 e23a42f commit 6843710
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 @@ -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),
}
Expand Down Expand Up @@ -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]
Expand All @@ -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]
Expand Down

0 comments on commit 6843710

Please sign in to comment.