Skip to content

Commit

Permalink
cherry-pick: nil ptr in gen bor logs (#14092)
Browse files Browse the repository at this point in the history
cherry-pick #14091 to
release/3.0
  • Loading branch information
AskAlexSharov authored Mar 6, 2025
1 parent 991c4a6 commit 9e416fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions turbo/jsonrpc/eth_receipts.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ func (api *BaseAPI) getLogsV3(ctx context.Context, tx kv.TemporalTx, begin, end
return logs, err
}

if len(events) == 0 {
continue
}

borLogs, err := api.borReceiptGenerator.GenerateBorLogs(ctx, events, txNumsReader, tx, header, chainConfig, txIndex, len(logs))
if err != nil {
return logs, err
Expand Down

0 comments on commit 9e416fb

Please sign in to comment.