From 7fc95bee8fbd46322ee373e285d28997c233c693 Mon Sep 17 00:00:00 2001 From: Jun Kimura Date: Tue, 29 Aug 2023 10:37:56 +0900 Subject: [PATCH] allow zero for `max_clock_drift` Signed-off-by: Jun Kimura --- crates/ibc/src/client_state.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/crates/ibc/src/client_state.rs b/crates/ibc/src/client_state.rs index 1b1569d..25e937b 100644 --- a/crates/ibc/src/client_state.rs +++ b/crates/ibc/src/client_state.rs @@ -202,8 +202,6 @@ impl ClientState { 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() {