Skip to content

Commit

Permalink
fix: enum serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludo Galabru committed Apr 13, 2023
1 parent 38153ca commit 67cb340
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/chainhook-event-observer/src/chainhooks/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ pub enum OutputPredicate {
}

#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, JsonSchema)]
#[serde(rename_all = "snake_case")]
#[serde(rename_all = "snake_case", tag = "operation")]
pub enum StacksOperations {
StackerRewarded,
BlockCommitted,
Expand All @@ -501,7 +501,7 @@ pub enum StacksOperations {
}

#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, JsonSchema)]
#[serde(rename_all = "snake_case")]
#[serde(rename_all = "snake_case", tag = "operation")]
pub enum OrdinalOperations {
InscriptionFeed,
}
Expand Down

0 comments on commit 67cb340

Please sign in to comment.