From cda9af462f2fd38ffcc8cd14c4a56772f2459c1d Mon Sep 17 00:00:00 2001 From: Sasa Prsic Date: Fri, 15 Mar 2024 13:22:13 +0100 Subject: [PATCH] Add camelCase for roots. --- core/src/data_proof.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/data_proof.rs b/core/src/data_proof.rs index 2986d8e..3f4f941 100644 --- a/core/src/data_proof.rs +++ b/core/src/data_proof.rs @@ -57,7 +57,11 @@ pub enum SubTrie { } #[derive(Debug, Clone, Copy, Encode, Decode, PartialEq, Eq, Default, TypeInfo)] -#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] +#[cfg_attr( + feature = "serde", + serde(rename_all = "camelCase"), + derive(Serialize, Deserialize) +)] pub struct TxDataRoots { /// Global Merkle root pub data_root: H256,