From 13614566b2a0cb2b99bb4e0f14df6e0c8161ec2d Mon Sep 17 00:00:00 2001 From: Scott Twiname Date: Mon, 25 Mar 2024 11:12:27 +1300 Subject: [PATCH] Fix resetting logs filter if transactions filter also provided --- eth/filters/api_subql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/filters/api_subql.go b/eth/filters/api_subql.go index 593685f78e0e..75934f1d46fb 100644 --- a/eth/filters/api_subql.go +++ b/eth/filters/api_subql.go @@ -395,7 +395,7 @@ func (args *BlockFilter) UnmarshalJSON(data []byte) error { } if txsFilter, ok := raw.BlockFilter["transactions"]; ok { - args.Logs = []ethereum.FilterQuery{} + args.Transactions = []ethereum.TxFilterQuery{} for _, txFilter := range txsFilter { fromAddresses, err := decodeAddresses(txFilter["from"])