Skip to content

Commit

Permalink
Fix resetting logs filter if transactions filter also provided
Browse files Browse the repository at this point in the history
  • Loading branch information
stwiname committed Mar 24, 2024
1 parent 5d071d4 commit 1361456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/filters/api_subql.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit 1361456

Please sign in to comment.