Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
fix: default values for in 'flashbots_getBundleStatsV2' (closes #42) (#…
Browse files Browse the repository at this point in the history
…43)

The fields 'considered_by_builders_at', 'sealed_by_builders_at' are
optional, set default derive values (empty array) to avoid the
deserialization error.
  • Loading branch information
ibhagwan authored Dec 24, 2022
1 parent e6dd2d3 commit e85800b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,10 @@ pub struct BundleStats {
/// When the bundle was received by the bundle API.
pub received_at: Option<DateTime<Utc>>,
/// A list of times at which builders selected the bundle to be included in the target block.
#[serde(default = "Vec::new")]
pub considered_by_builders_at: Vec<BuilderEntry>,
/// A list of times at which builders sealed a block containing the bundle.
#[serde(default = "Vec::new")]
pub sealed_by_builders_at: Vec<BuilderEntry>,
}

Expand Down

0 comments on commit e85800b

Please sign in to comment.