Skip to content

Commit 3d3b63a

Browse files
fgimenezklkvr
andauthored
test: complete mine block test in e2e testsuite (paradigmxyz/reth#14849)
Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
1 parent a4abeca commit 3d3b63a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

chainspec/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,12 @@ impl From<Genesis> for OpChainSpec {
381381
}
382382
}
383383

384+
impl From<ChainSpec> for OpChainSpec {
385+
fn from(value: ChainSpec) -> Self {
386+
Self { inner: value }
387+
}
388+
}
389+
384390
#[derive(Default, Debug)]
385391
struct OpGenesisInfo {
386392
optimism_chain_info: op_alloy_rpc_types::OpChainInfo,

payload/src/payload.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,14 @@ impl<T: Decodable2718 + Send + Sync + Debug> PayloadBuilderAttributes
142142
}
143143
}
144144

145+
impl<OpTransactionSigned> From<EthPayloadBuilderAttributes>
146+
for OpPayloadBuilderAttributes<OpTransactionSigned>
147+
{
148+
fn from(value: EthPayloadBuilderAttributes) -> Self {
149+
Self { payload_attributes: value, ..Default::default() }
150+
}
151+
}
152+
145153
/// Contains the built payload.
146154
#[derive(Debug, Clone)]
147155
pub struct OpBuiltPayload<N: NodePrimitives = OpPrimitives> {

0 commit comments

Comments
 (0)