File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff 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 ) ]
385391struct OpGenesisInfo {
386392 optimism_chain_info : op_alloy_rpc_types:: OpChainInfo ,
Original file line number Diff line number Diff 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 ) ]
147155pub struct OpBuiltPayload < N : NodePrimitives = OpPrimitives > {
You can’t perform that action at this time.
0 commit comments