mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: abstract OP payload builder over transaction (#14153)
This commit is contained in:
@ -232,7 +232,6 @@ where
|
||||
|
||||
receipts.push(
|
||||
match self.receipt_builder.build_receipt(ReceiptBuilderCtx {
|
||||
header: block.header(),
|
||||
tx: transaction,
|
||||
result,
|
||||
cumulative_gas_used,
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
use alloy_consensus::{Eip658Value, Header, Receipt};
|
||||
use alloy_consensus::{Eip658Value, Receipt};
|
||||
use core::fmt;
|
||||
use op_alloy_consensus::{OpDepositReceipt, OpTxType};
|
||||
use reth_optimism_primitives::{OpReceipt, OpTransactionSigned};
|
||||
@ -7,8 +7,6 @@ use revm_primitives::ExecutionResult;
|
||||
/// Context for building a receipt.
|
||||
#[derive(Debug)]
|
||||
pub struct ReceiptBuilderCtx<'a, T> {
|
||||
/// Block header.
|
||||
pub header: &'a Header,
|
||||
/// Transaction
|
||||
pub tx: &'a T,
|
||||
/// Result of transaction execution.
|
||||
|
||||
Reference in New Issue
Block a user