From 55107ea1b8fd2ca844f1f77dc25e20143836af6b Mon Sep 17 00:00:00 2001 From: Roman Krasiuk Date: Wed, 11 Dec 2024 15:34:35 -0500 Subject: [PATCH] default to empty if holocene is disabled for op --- crates/optimism/payload/src/builder.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/crates/optimism/payload/src/builder.rs b/crates/optimism/payload/src/builder.rs index 27778da8f429..790da228cef3 100644 --- a/crates/optimism/payload/src/builder.rs +++ b/crates/optimism/payload/src/builder.rs @@ -195,11 +195,7 @@ where let (initialized_cfg, initialized_block_env) = self.cfg_and_block_env(&attributes, &parent).map_err(PayloadBuilderError::other)?; - let config = PayloadConfig { - parent_header: Arc::new(parent), - attributes, - extra_data: Default::default(), - }; + let config = PayloadConfig { parent_header: Arc::new(parent), attributes }; let ctx = OpPayloadBuilderCtx { evm_config: self.evm_config.clone(), chain_spec: client.chain_spec(), @@ -621,7 +617,7 @@ impl OpPayloadBuilderCtx { /// Returns the extra data for the block. /// - /// After holocene this extracts the extradata from the paylpad + /// After holocene this extracts the extra data from the payload pub fn extra_data(&self) -> Result { if self.is_holocene_active() { self.attributes() @@ -632,7 +628,7 @@ impl OpPayloadBuilderCtx { ) .map_err(PayloadBuilderError::other) } else { - Ok(self.config.extra_data.clone()) + Ok(Default::default()) } }