From 0bc2dcbd7180d13795f3d207a3aa2033f34a5792 Mon Sep 17 00:00:00 2001 From: Manav Darji Date: Thu, 20 Jun 2024 17:19:12 +0530 Subject: [PATCH] cmd/utils: use defined filter api instance instead of a new one (#1270) --- cmd/utils/flags.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index f65940f297..1fad54804f 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -2019,7 +2019,7 @@ func RegisterFilterAPI(stack *node.Node, backend ethapi.Backend, ethcfg *ethconf filterAPI := filters.NewFilterAPI(filterSystem, false, ethcfg.BorLogs) stack.RegisterAPIs([]rpc.API{{ Namespace: "eth", - Service: filters.NewFilterAPI(filterSystem, false, false), + Service: filterAPI, }}) // avoiding constructor changed by introducing new method to set genesis