Skip to content

Commit

Permalink
fix(api): fix missing camel case renaming (#457)
Browse files Browse the repository at this point in the history
Fix camel case renaming
  • Loading branch information
Alex6323 committed Jul 20, 2022
1 parent e0c1a37 commit d0446d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/inx-chronicle/src/api/stardust/history/responses.rs
Expand Up @@ -13,6 +13,7 @@ use serde::{Deserialize, Serialize};
use crate::api::responses::impl_success_response;

#[derive(Clone, Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct LederUpdatesByAddressResponse {
pub address: String,
pub items: Vec<LedgerUpdateByAddressResponse>,
Expand Down Expand Up @@ -42,6 +43,7 @@ impl From<LedgerUpdateByAddressRecord> for LedgerUpdateByAddressResponse {
}

#[derive(Clone, Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct LedgerUpdatesByMilestoneResponse {
pub milestone_index: MilestoneIndex,
pub items: Vec<LedgerUpdateByMilestoneResponse>,
Expand Down

0 comments on commit d0446d2

Please sign in to comment.