Skip to content

Commit 67cb340

Browse files
author
Ludo Galabru
committed
fix: enum serialization
1 parent 38153ca commit 67cb340

File tree

1 file changed

+2
-2
lines changed
  • components/chainhook-event-observer/src/chainhooks

1 file changed

+2
-2
lines changed

components/chainhook-event-observer/src/chainhooks/types.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ pub enum OutputPredicate {
491491
}
492492

493493
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, JsonSchema)]
494-
#[serde(rename_all = "snake_case")]
494+
#[serde(rename_all = "snake_case", tag = "operation")]
495495
pub enum StacksOperations {
496496
StackerRewarded,
497497
BlockCommitted,
@@ -501,7 +501,7 @@ pub enum StacksOperations {
501501
}
502502

503503
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, JsonSchema)]
504-
#[serde(rename_all = "snake_case")]
504+
#[serde(rename_all = "snake_case", tag = "operation")]
505505
pub enum OrdinalOperations {
506506
InscriptionFeed,
507507
}

0 commit comments

Comments
 (0)