From ab1ac02065a0b07d0f7bfe113e07a058d12d2cf2 Mon Sep 17 00:00:00 2001 From: Ammar Arif Date: Wed, 11 Sep 2024 14:44:06 -0400 Subject: [PATCH] Derive `Clone` for call info types --- crates/blockifier/src/execution/call_info.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/blockifier/src/execution/call_info.rs b/crates/blockifier/src/execution/call_info.rs index 1efef68115..3dd680efd8 100644 --- a/crates/blockifier/src/execution/call_info.rs +++ b/crates/blockifier/src/execution/call_info.rs @@ -24,7 +24,7 @@ macro_rules! retdata { }; } -#[cfg_attr(test, derive(Clone))] +#[cfg_attr(any(test, feature = "testing"), derive(Clone))] #[derive(Debug, Default, Eq, PartialEq, Serialize)] pub struct OrderedEvent { pub order: usize, @@ -54,14 +54,14 @@ impl MessageL1CostInfo { } } -#[cfg_attr(test, derive(Clone))] +#[cfg_attr(any(test, feature = "testing"), derive(Clone))] #[derive(Debug, Default, Eq, PartialEq, Serialize)] pub struct MessageToL1 { pub to_address: EthAddress, pub payload: L2ToL1Payload, } -#[cfg_attr(test, derive(Clone))] +#[cfg_attr(any(test, feature = "testing"), derive(Clone))] #[derive(Debug, Default, Eq, PartialEq, Serialize)] pub struct OrderedL2ToL1Message { pub order: usize, @@ -73,7 +73,7 @@ pub fn get_payload_lengths(l2_to_l1_messages: &[OrderedL2ToL1Message]) -> Vec