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 kimmyeonghun committed Jul 4, 2018
1 parent 7053b7b commit a90a10a
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 a90a10a

Please sign in to comment.