Skip to content

Commit

Permalink
remove common method
Browse files Browse the repository at this point in the history
  • Loading branch information
iFrostizz committed Aug 31, 2024
1 parent ee45f22 commit 976756f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions types/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,17 +219,6 @@ macro_rules! common_impl {
}

impl Header {
pub fn common(&self) -> &CommonHeader {
todo!();
// match self {
// Header::Legacy(LegacyHeader { common })
// | Header::London(LondonHeader { common, .. })
// | Header::Shanghai(ShanghaiHeader { common, .. })
// | Header::Cancun(CancunHeader { common, .. })
// | Header::Unknown(UnknownHeader { common, .. }) => common,
// }
}

fn common_from_raw_rlp(rlp: &mut Rlp) -> Result<CommonHeader, RlpError> {
let common_fields = CommonHeader::fields();
let common_rec = (0..common_fields)
Expand Down

0 comments on commit 976756f

Please sign in to comment.