Skip to content

Commit

Permalink
Merge pull request #79 from availproject/sasa/add_camelCase
Browse files Browse the repository at this point in the history
Add camelCase for tx roots.
  • Loading branch information
markopoloparadox authored Mar 18, 2024
2 parents b896a65 + cda9af4 commit 56b0d5c
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 56b0d5c

Please sign in to comment.