mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2024-12-24 23:35:18 +00:00
hotfix for json serde camel case
This commit is contained in:
parent
4edd61b9d2
commit
e7a562fa61
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user