diff --git a/crates/primitives/src/block.rs b/crates/primitives/src/block.rs index 5ccba67dda..b22007b474 100644 --- a/crates/primitives/src/block.rs +++ b/crates/primitives/src/block.rs @@ -604,6 +604,12 @@ impl BlockBody { } } +impl From for BlockBody { + fn from(block: Block) -> Self { + Self { transactions: block.body, ommers: block.ommers, withdrawals: block.withdrawals } + } +} + #[cfg(test)] mod tests { use super::{BlockNumberOrTag::*, *};