Skip to content

Commit

Permalink
allow zero for max_clock_drift
Browse files Browse the repository at this point in the history
Signed-off-by: Jun Kimura <[email protected]>
  • Loading branch information
bluele committed Aug 29, 2023
1 parent acf1999 commit 7fc95be
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crates/ibc/src/client_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ impl<const SYNC_COMMITTEE_SIZE: usize> ClientState<SYNC_COMMITTEE_SIZE> {
Err(Error::UninitializedClientStateField("trust_level"))
} else if self.trusting_period == Duration::default() {
Err(Error::UninitializedClientStateField("trusting_period"))
} else if self.max_clock_drift == Duration::default() {
Err(Error::UninitializedClientStateField("max_clock_drift"))
} else if self.latest_slot == Slot::default() {
Err(Error::UninitializedClientStateField("latest_slot"))
} else if self.latest_execution_block_number == U64::default() {
Expand Down

0 comments on commit 7fc95be

Please sign in to comment.