Remove `limit` on `Filter` (#917)
This commit is contained in:
parent
cd8a9b5a97
commit
859af7e819
|
@ -160,9 +160,6 @@ pub struct Filter {
|
||||||
// TODO: We could improve the low level API here by using ethabi's RawTopicFilter
|
// TODO: We could improve the low level API here by using ethabi's RawTopicFilter
|
||||||
// and/or TopicFilter
|
// and/or TopicFilter
|
||||||
pub topics: [Option<ValueOrArray<H256>>; 4],
|
pub topics: [Option<ValueOrArray<H256>>; 4],
|
||||||
|
|
||||||
/// Limit
|
|
||||||
limit: Option<usize>,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Serialize for Filter {
|
impl Serialize for Filter {
|
||||||
|
@ -202,10 +199,6 @@ impl Serialize for Filter {
|
||||||
}
|
}
|
||||||
s.serialize_field("topics", &filtered_topics)?;
|
s.serialize_field("topics", &filtered_topics)?;
|
||||||
|
|
||||||
if let Some(ref limit) = self.limit {
|
|
||||||
s.serialize_field("limit", limit)?;
|
|
||||||
}
|
|
||||||
|
|
||||||
s.end()
|
s.end()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -343,12 +336,6 @@ impl Filter {
|
||||||
self.topics[3] = Some(topic.into());
|
self.topics[3] = Some(topic.into());
|
||||||
self
|
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
|
/// Union type for representing a single value or a vector of values inside a filter
|
||||||
|
|
Loading…
Reference in New Issue