We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1da3302 commit 8edaa1eCopy full SHA for 8edaa1e
eth/filters/api.go
@@ -268,14 +268,8 @@ func (api *PublicFilterAPI) Logs(ctx context.Context, crit FilterCriteria) (*rpc
268
}
269
270
// FilterCriteria represents a request to create a new filter.
271
-//
272
-// TODO(karalabe): Kill this in favor of ethereum.FilterQuery.
273
-type FilterCriteria struct {
274
- FromBlock *big.Int
275
- ToBlock *big.Int
276
- Addresses []common.Address
277
- Topics [][]common.Hash
278
-}
+// Same as ethereum.FilterQuery but with UnmarshalJSON() method.
+type FilterCriteria ethereum.FilterQuery
279
280
// NewFilter creates a new filter and returns the filter id. It can be
281
// used to retrieve logs when the state changes. This method cannot be
0 commit comments