From 067576c6f18090622ebeb52bb871c9002ae3cdc5 Mon Sep 17 00:00:00 2001 From: clabby Date: Tue, 17 Oct 2023 09:23:04 -0400 Subject: [PATCH] :broom: --- crates/payload/builder/src/payload.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/crates/payload/builder/src/payload.rs b/crates/payload/builder/src/payload.rs index a82af3d4a3b5e..922bcee4c9998 100644 --- a/crates/payload/builder/src/payload.rs +++ b/crates/payload/builder/src/payload.rs @@ -156,20 +156,20 @@ impl PayloadBuilderAttributes { /// /// Derives the unique [PayloadId] for the given parent and attributes pub fn try_new(parent: B256, attributes: PayloadAttributes) -> Result { - #[cfg(feature = "optimism")] - let transactions = attributes - .transactions - .as_ref() - .unwrap_or(&Vec::default()) - .iter() - .map(|tx| TransactionSigned::decode_enveloped(tx.clone())) - .collect::>()?; - #[cfg(not(feature = "optimism"))] let id = payload_id(&parent, &attributes); #[cfg(feature = "optimism")] - let id = payload_id(&parent, &attributes, &transactions); + let (transactions, id) = ( + attributes + .transactions + .as_ref() + .unwrap_or(&Vec::default()) + .iter() + .map(|tx| TransactionSigned::decode_enveloped(tx.clone())) + .collect::>()?, + payload_id(&parent, &attributes, &transactions), + ); let withdraw = attributes.withdrawals.map( |withdrawals: Vec| {