From 508f31bae94b5489bb7d4f1b5a0527b3132c456e Mon Sep 17 00:00:00 2001 From: rooooooooob Date: Sun, 14 Jul 2024 15:00:26 -0700 Subject: [PATCH] add serde::Serialize/Deserialize to NetworkInfo (#342) --- chain/rust/src/genesis/network_info.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chain/rust/src/genesis/network_info.rs b/chain/rust/src/genesis/network_info.rs index 6e942d91..7893ae67 100644 --- a/chain/rust/src/genesis/network_info.rs +++ b/chain/rust/src/genesis/network_info.rs @@ -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,