Skip to content

Commit

Permalink
fix: BlockRejectReasonCode serialization tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
zone117x committed Oct 24, 2024
1 parent 0ad6645 commit 7584f49
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/chainhook-types-rs/src/signers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@ pub enum BlockValidationFailedCode {
}

#[derive(Debug, Clone, PartialEq, Deserialize, Serialize)]
#[serde(untagged)]
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
pub enum BlockRejectReasonCode {
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
ValidationFailed { validation_failed: BlockValidationFailedCode },
ValidationFailed {
#[serde(rename = "VALIDATION_FAILED")]
validation_failed: BlockValidationFailedCode,
},
ConnectivityIssues,
RejectedInPriorRound,
NoSortitionView,
Expand Down

0 comments on commit 7584f49

Please sign in to comment.