Skip to content

Commit

Permalink
Update filter.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
DoTheBestToGetTheBest authored Nov 5, 2023
1 parent 3876f84 commit d292627
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions crates/rpc/rpc-types/src/eth/trace/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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")]
Expand Down

0 comments on commit d292627

Please sign in to comment.