diff --git a/crates/primitives/src/block.rs b/crates/primitives/src/block.rs index 54e0085f53..9e703faaab 100644 --- a/crates/primitives/src/block.rs +++ b/crates/primitives/src/block.rs @@ -54,6 +54,11 @@ impl Block { } /// Transform into a [`BlockWithSenders`]. + /// + /// # Panics + /// + /// If the number of senders does not match the number of transactions in the block. + #[track_caller] pub fn with_senders(self, senders: Vec
) -> BlockWithSenders { assert_eq!(self.body.len(), senders.len(), "Unequal number of senders");