Skip to content

Commit

Permalink
Fix check.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibancioiu committed Dec 13, 2023
1 parent 3789d1d commit c3c0b7e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions server/services/transactionsTransformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,9 @@ func (transformer *transactionsTransformer) createValueReturnOperationsIfIntrash
tx *transaction.ApiTransactionResult,
allTransactionsInBlock []*transaction.ApiTransactionResult,
) ([]*types.Operation, error) {
if !transformer.featuresDetector.isIntrashardContractCallWithSignalErrorButWithoutContractResultBearingRefundValue(tx, allTransactionsInBlock) {
return []*types.Operation{}, nil
}
if !transformer.featuresDetector.isContractDeploymentWithSignalError(tx) {
isContractCallWithError := transformer.featuresDetector.isIntrashardContractCallWithSignalErrorButWithoutContractResultBearingRefundValue(tx, allTransactionsInBlock)
isContractDeploymentWithError := transformer.featuresDetector.isContractDeploymentWithSignalError(tx)
if !isContractCallWithError && !isContractDeploymentWithError {
return []*types.Operation{}, nil
}

Expand Down

0 comments on commit c3c0b7e

Please sign in to comment.