Skip to content

Commit

Permalink
Fix panic in eth_getLogs
Browse files Browse the repository at this point in the history
  • Loading branch information
cffls committed Oct 4, 2024
1 parent b35b0e0 commit 827811a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eth/filters/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ func (api *FilterAPI) GetLogs(ctx context.Context, crit FilterCriteria) ([]*type
return nil, errExceedMaxTopics
}

borConfig := api.chainConfig.Bor
borConfig := api.sys.backend.ChainConfig().Bor

var filter *Filter

Expand Down Expand Up @@ -435,7 +435,7 @@ func (api *FilterAPI) GetFilterLogs(ctx context.Context, id rpc.ID) ([]*types.Lo
return nil, errFilterNotFound
}

borConfig := api.chainConfig.Bor
borConfig := api.sys.backend.ChainConfig().Bor

Check warning on line 438 in eth/filters/api.go

View check run for this annotation

Codecov / codecov/patch

eth/filters/api.go#L438

Added line #L438 was not covered by tests

var filter *Filter

Expand Down

0 comments on commit 827811a

Please sign in to comment.