mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: remove block_to_payload_v1 (#14143)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -19,7 +19,6 @@ reth-primitives-traits.workspace = true
|
||||
reth-revm = { workspace = true, features = ["witness"] }
|
||||
reth-transaction-pool.workspace = true
|
||||
reth-provider.workspace = true
|
||||
reth-rpc-types-compat.workspace = true
|
||||
reth-evm.workspace = true
|
||||
reth-execution-types.workspace = true
|
||||
reth-payload-builder.workspace = true
|
||||
|
||||
@ -21,7 +21,7 @@ use reth_optimism_primitives::{OpBlock, OpPrimitives, OpTransactionSigned};
|
||||
use reth_payload_builder::EthPayloadBuilderAttributes;
|
||||
use reth_payload_primitives::{BuiltPayload, PayloadBuilderAttributes};
|
||||
use reth_primitives::{transaction::WithEncoded, SealedBlock};
|
||||
use reth_rpc_types_compat::engine::payload::block_to_payload_v1;
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
/// Optimism Payload Builder Attributes
|
||||
@ -229,7 +229,10 @@ impl BuiltPayload for &OpBuiltPayload {
|
||||
// V1 engine_getPayloadV1 response
|
||||
impl From<OpBuiltPayload> for ExecutionPayloadV1 {
|
||||
fn from(value: OpBuiltPayload) -> Self {
|
||||
block_to_payload_v1(Arc::unwrap_or_clone(value.block))
|
||||
Self::from_block_unchecked(
|
||||
value.block().hash(),
|
||||
&Arc::unwrap_or_clone(value.block).into_block(),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user