Skip to content

Commit

Permalink
Add camelCase for roots.
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSasaPrsic committed Mar 15, 2024
1 parent 4b9888b commit cda9af4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/src/data_proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),

Check warning on line 62 in core/src/data_proof.rs

View workflow job for this annotation

GitHub Actions / build_and_test

derive helper attribute is used before it is introduced

Check warning on line 62 in core/src/data_proof.rs

View workflow job for this annotation

GitHub Actions / build_and_test

derive helper attribute is used before it is introduced
derive(Serialize, Deserialize)
)]
pub struct TxDataRoots {
/// Global Merkle root
pub data_root: H256,
Expand Down

0 comments on commit cda9af4

Please sign in to comment.