use reth::rpc::types::{
engine::ExecutionPayloadEnvelopeV3, optimism::OptimismExecutionPayloadEnvelopeV3,
ExecutionPayloadV3,
};
pub trait PayloadEnvelopeExt: Send + Sync + std::fmt::Debug {
fn execution_payload(&self) -> ExecutionPayloadV3;
}
impl PayloadEnvelopeExt for OptimismExecutionPayloadEnvelopeV3 {
fn execution_payload(&self) -> ExecutionPayloadV3 {
self.execution_payload.clone()
}
}
impl PayloadEnvelopeExt for ExecutionPayloadEnvelopeV3 {
fn execution_payload(&self) -> ExecutionPayloadV3 {
self.execution_payload.clone()
}
}