Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Remove limit on Filter (#917)
Browse files Browse the repository at this point in the history
  • Loading branch information
scrogson authored Feb 16, 2022
1 parent cd8a9b5 commit 859af7e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions ethers-core/src/types/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,6 @@ pub struct Filter {
// TODO: We could improve the low level API here by using ethabi's RawTopicFilter
// and/or TopicFilter
pub topics: [Option<ValueOrArray<H256>>; 4],

/// Limit
limit: Option<usize>,
}

impl Serialize for Filter {
Expand Down Expand Up @@ -202,10 +199,6 @@ impl Serialize for Filter {
}
s.serialize_field("topics", &filtered_topics)?;

if let Some(ref limit) = self.limit {
s.serialize_field("limit", limit)?;
}

s.end()
}
}
Expand Down Expand Up @@ -343,12 +336,6 @@ impl Filter {
self.topics[3] = Some(topic.into());
self
}

#[must_use]
pub fn limit(mut self, limit: usize) -> Self {
self.limit = Some(limit);
self
}
}

/// Union type for representing a single value or a vector of values inside a filter
Expand Down

0 comments on commit 859af7e

Please sign in to comment.