diff --git a/crates/ibc/src/client_state.rs b/crates/ibc/src/client_state.rs index e93ca65..370f8d9 100644 --- a/crates/ibc/src/client_state.rs +++ b/crates/ibc/src/client_state.rs @@ -123,7 +123,7 @@ impl &[u8] { + let mut pos = 0; + for v in value { + if *v != 0 { + break; + } + pos += 1; + } + &value[pos..] +} + #[cfg(test)] mod tests { use super::*;