From 8b24eca70bd44d7aa5bc407accc8aac678137786 Mon Sep 17 00:00:00 2001 From: Arni Hod Date: Mon, 22 Jul 2024 17:36:37 +0300 Subject: [PATCH] chore: derive serialize and deserialize for chain info --- crates/blockifier/src/context.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/blockifier/src/context.rs b/crates/blockifier/src/context.rs index 383a14d7e6..8f27c3fbdf 100644 --- a/crates/blockifier/src/context.rs +++ b/crates/blockifier/src/context.rs @@ -1,3 +1,4 @@ +use serde::{Deserialize, Serialize}; use starknet_api::core::{ChainId, ContractAddress}; use crate::blockifier::block::BlockInfo; @@ -68,7 +69,7 @@ impl BlockContext { } } -#[derive(Clone, Debug)] +#[derive(Clone, Debug, Deserialize, PartialEq, Serialize)] pub struct ChainInfo { pub chain_id: ChainId, pub fee_token_addresses: FeeTokenAddresses, @@ -92,7 +93,7 @@ impl Default for ChainInfo { } } -#[derive(Clone, Debug, Default)] +#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct FeeTokenAddresses { pub strk_fee_token_address: ContractAddress, pub eth_fee_token_address: ContractAddress,