Skip to content

Commit

Permalink
use serde cfg_attr
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Jan 27, 2025
1 parent 5557858 commit 5a0b3f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibc-core/ics02-client/types/src/height.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ use crate::error::ClientError;
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
pub struct Height {
/// Previously known as "epoch"
#[serde(default)]
#[cfg_attr(feature = "serde", serde(default))]
revision_number: u64,

/// The height of a block
Expand Down

0 comments on commit 5a0b3f7

Please sign in to comment.