Remove `limit` on `Filter` (#917)

This commit is contained in:
Sonny Scroggin 2022-02-16 09:15:55 -06:00 committed by GitHub
parent cd8a9b5a97
commit 859af7e819
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 13 deletions

View File

@ -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 {
@ -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