Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tbro committed Aug 1, 2024
1 parent cc38039 commit 8a27973
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions types/src/v0/impls/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,32 +357,6 @@ impl Header {
_ => panic!("invalid version: {version}"),
}
}
// #[cfg(test)]
// pub fn from_header(header: Self, overrides: HeaderOverides) -> Self {
// let builder_signature = if let Some(builder_signature) = overrides.builder_signature {
// builder_signature
// } else {
// header.builder_signature()
// };
// match header {
// Self::V1(header) => Self::V1(v0_1::Header {
// builder_signature: Some(signature),
// fee_info: FeeInfo::new(account, data),
// ..header
// }),
// _ => unimplemented!(),
// };
// }
}

#[cfg(test)]
/// Test utility that allows us to override fields on a Header. We
/// should only add things here that are only used in tests. Every
/// field should be an `Option` to allow us to determine if that field
/// should be updated or not.
struct HeaderOverides {
pub builder_signature: Option<BuilderSignature>,
pub fee_info: Option<FeeInfo>,
}

// Getter for a field which is the same across all versions.
Expand Down

0 comments on commit 8a27973

Please sign in to comment.