diff --git a/ethers-core/src/types/log.rs b/ethers-core/src/types/log.rs index 374765ab..c788b86d 100644 --- a/ethers-core/src/types/log.rs +++ b/ethers-core/src/types/log.rs @@ -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>; 4], - - /// Limit - limit: Option, } impl Serialize for Filter { @@ -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() } } @@ -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