From 827811a8d22a965dce977dfb728ec0c9bb5ef631 Mon Sep 17 00:00:00 2001 From: Jerry Date: Thu, 3 Oct 2024 22:33:45 -0700 Subject: [PATCH] Fix panic in eth_getLogs --- eth/filters/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/filters/api.go b/eth/filters/api.go index a3918aab75..0d561bc83a 100644 --- a/eth/filters/api.go +++ b/eth/filters/api.go @@ -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 @@ -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 var filter *Filter