Skip to content

Commit

Permalink
Make PostExectuionInput generic over receipt (#12814)
Browse files Browse the repository at this point in the history
Co-authored-by: Emilia Hane <[email protected]>
  • Loading branch information
0xriazaka and emhane authored Nov 24, 2024
1 parent 9b28935 commit 6695d07
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/consensus/consensus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ pub mod test_utils;

/// Post execution input passed to [`Consensus::validate_block_post_execution`].
#[derive(Debug)]
pub struct PostExecutionInput<'a> {
pub struct PostExecutionInput<'a, R = Receipt> {
/// Receipts of the block.
pub receipts: &'a [Receipt],
pub receipts: &'a [R],
/// EIP-7685 requests of the block.
pub requests: &'a Requests,
}

impl<'a> PostExecutionInput<'a> {
impl<'a, R> PostExecutionInput<'a, R> {
/// Creates a new instance of `PostExecutionInput`.
pub const fn new(receipts: &'a [Receipt], requests: &'a Requests) -> Self {
pub const fn new(receipts: &'a [R], requests: &'a Requests) -> Self {
Self { receipts, requests }
}
}
Expand Down

0 comments on commit 6695d07

Please sign in to comment.