From 859af7e8196f9bcff11019619df35a20e00d42a7 Mon Sep 17 00:00:00 2001 From: Sonny Scroggin Date: Wed, 16 Feb 2022 09:15:55 -0600 Subject: [PATCH] Remove `limit` on `Filter` (#917) --- ethers-core/src/types/log.rs | 13 ------------- 1 file changed, 13 deletions(-) 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