From 023d5f2061c44312cb2e3581ec2f82da248671d2 Mon Sep 17 00:00:00 2001 From: Guy Nir Date: Wed, 19 Feb 2025 15:11:34 +0200 Subject: [PATCH] chore(papyrus_base_layer): allow PriceSample to be serialized/deserialized --- crates/papyrus_base_layer/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/papyrus_base_layer/src/lib.rs b/crates/papyrus_base_layer/src/lib.rs index 16865a23b4e..f4052ac1f32 100644 --- a/crates/papyrus_base_layer/src/lib.rs +++ b/crates/papyrus_base_layer/src/lib.rs @@ -75,7 +75,7 @@ pub trait BaseLayerContract { } /// A struct that holds together the data on the base layer's gas prices, for a given timestamp. -#[derive(Clone, Debug)] +#[derive(Clone, Debug, Serialize, Deserialize)] pub struct PriceSample { pub timestamp: u64, // Fee is stored as u128 for compatibility with any base layer.