Skip to content

Commit

Permalink
add serde::Serialize/Deserialize to NetworkInfo (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
rooooooooob authored Jul 14, 2024
1 parent 653fd14 commit 508f31b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chain/rust/src/genesis/network_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ use cml_core::network::{
PREVIEW_NETWORK_MAGIC, SANCHO_TESTNET_NETWORK_MAGIC,
};

#[derive(Debug, Clone, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[derive(
Debug, Clone, Eq, Hash, Ord, PartialEq, PartialOrd, serde::Serialize, serde::Deserialize,
)]
pub struct NetworkInfo {
network_id: u8,
protocol_magic: ProtocolMagic,
Expand Down

0 comments on commit 508f31b

Please sign in to comment.