Skip to content

Commit

Permalink
chore: derive serialize and deserialize for chain info (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArniStarkware authored Jul 31, 2024
1 parent 0a4d9c2 commit d1798bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/blockifier/src/context.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use serde::{Deserialize, Serialize};
use starknet_api::core::{ChainId, ContractAddress};

use crate::blockifier::block::BlockInfo;
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit d1798bc

Please sign in to comment.