hotfix for json serde camel case

This commit is contained in:
boqiu 2024-09-02 16:12:01 +08:00
parent 4edd61b9d2
commit e7a562fa61

View File

@ -370,6 +370,7 @@ impl TryFrom<FileProof> for FlowProof {
#[derive( #[derive(
DeriveEncode, DeriveDecode, Clone, Debug, Default, Eq, PartialEq, Serialize, Deserialize, DeriveEncode, DeriveDecode, Clone, Debug, Default, Eq, PartialEq, Serialize, Deserialize,
)] )]
#[serde(rename_all = "camelCase")]
pub struct NetworkIdentity { pub struct NetworkIdentity {
/// The chain id of the blockchain network. /// The chain id of the blockchain network.
pub chain_id: u64, pub chain_id: u64,
@ -384,6 +385,7 @@ pub struct NetworkIdentity {
#[derive( #[derive(
DeriveEncode, DeriveDecode, Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize, DeriveEncode, DeriveDecode, Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize,
)] )]
#[serde(rename_all = "camelCase")]
pub struct ProtocolVersion { pub struct ProtocolVersion {
pub major: u8, pub major: u8,
pub minor: u8, pub minor: u8,