From e7a562fa6117f0ff91e5649fde293328f20d0339 Mon Sep 17 00:00:00 2001 From: boqiu <82121246@qq.com> Date: Mon, 2 Sep 2024 16:12:01 +0800 Subject: [PATCH] hotfix for json serde camel case --- node/shared_types/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node/shared_types/src/lib.rs b/node/shared_types/src/lib.rs index 11340c5..904cf67 100644 --- a/node/shared_types/src/lib.rs +++ b/node/shared_types/src/lib.rs @@ -370,6 +370,7 @@ impl TryFrom for FlowProof { #[derive( DeriveEncode, DeriveDecode, Clone, Debug, Default, Eq, PartialEq, Serialize, Deserialize, )] +#[serde(rename_all = "camelCase")] pub struct NetworkIdentity { /// The chain id of the blockchain network. pub chain_id: u64, @@ -384,6 +385,7 @@ pub struct NetworkIdentity { #[derive( DeriveEncode, DeriveDecode, Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize, )] +#[serde(rename_all = "camelCase")] pub struct ProtocolVersion { pub major: u8, pub minor: u8,