Skip to content

Commit

Permalink
eth/filters: derive FilterCriteria from ethereum.FilterQuery (ethereu…
Browse files Browse the repository at this point in the history
  • Loading branch information
reductionista authored and firmianavan committed Aug 28, 2018
1 parent 04e9d1b commit 0b72804
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions eth/filters/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,14 +268,8 @@ func (api *PublicFilterAPI) Logs(ctx context.Context, crit FilterCriteria) (*rpc
}

// FilterCriteria represents a request to create a new filter.
//
// TODO(karalabe): Kill this in favor of ethereum.FilterQuery.
type FilterCriteria struct {
FromBlock *big.Int
ToBlock *big.Int
Addresses []common.Address
Topics [][]common.Hash
}
// Same as ethereum.FilterQuery but with UnmarshalJSON() method.
type FilterCriteria ethereum.FilterQuery

// NewFilter creates a new filter and returns the filter id. It can be
// used to retrieve logs when the state changes. This method cannot be
Expand Down

0 comments on commit 0b72804

Please sign in to comment.