diff --git a/crates/rpc/rpc-types/src/eth/trace/filter.rs b/crates/rpc/rpc-types/src/eth/trace/filter.rs index 5f0ba1a43986..55cc0fe9c7cc 100644 --- a/crates/rpc/rpc-types/src/eth/trace/filter.rs +++ b/crates/rpc/rpc-types/src/eth/trace/filter.rs @@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize}; use std::collections::HashSet; /// Trace filter. -#[derive(Debug, PartialEq, Eq, Serialize, Deserialize, Clone)] +#[derive(Debug, PartialEq, Eq, Serialize, Deserialize, Clone, Default)] #[serde(deny_unknown_fields)] #[serde(rename_all = "camelCase")] pub struct TraceFilter { @@ -41,20 +41,6 @@ impl TraceFilter { } } -impl Default for TraceFilter { - fn default() -> Self { - TraceFilter { - from_block: None, - to_block: None, - from_address: Vec::new(), - to_address: Vec::new(), - mode: TraceFilterMode::Union, - after: None, - count: None, - } - } -} - /// How to apply `from_address` and `to_address` filters. #[derive(Debug, Clone, Copy, PartialEq, Eq, Default, Serialize, Deserialize)] #[serde(rename_all = "camelCase")]