Skip to content

Commit

Permalink
readd check
Browse files Browse the repository at this point in the history
  • Loading branch information
ToniRamirezM committed Feb 20, 2024
1 parent 40bb390 commit e75f388
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions state/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,12 @@ func (s *State) internalTestGasEstimationTransactionV2(ctx context.Context, batc
s.eventLog.LogExecutorErrorV2(ctx, processBatchResponseV2.Error, processBatchRequestV2)
return false, false, gasUsed, nil, err
}
if processBatchResponseV2.ErrorRom != executor.RomError_ROM_ERROR_NO_ERROR {
err = executor.RomErr(processBatchResponseV2.ErrorRom)
s.eventLog.LogExecutorErrorV2(ctx, processBatchResponseV2.Error, processBatchRequestV2)
return false, false, gasUsed, nil, err
}

gasUsed = processBatchResponseV2.BlockResponses[0].GasUsed

txResponse := processBatchResponseV2.BlockResponses[0].Responses[0]
Expand Down

0 comments on commit e75f388

Please sign in to comment.