diff --git a/crates/core/component/ibc/src/component/rpc/client_query.rs b/crates/core/component/ibc/src/component/rpc/client_query.rs index 12fb841fe6..992500aed8 100644 --- a/crates/core/component/ibc/src/component/rpc/client_query.rs +++ b/crates/core/component/ibc/src/component/rpc/client_query.rs @@ -51,7 +51,7 @@ impl ClientQuery for IbcQuery { .map_err(|e| tonic::Status::aborted(format!("couldn't get snapshot: {e}")))?; self.storage - .snapshot(height.revision_height - 1 as u64) + .snapshot(height.revision_height as u64) .ok_or(tonic::Status::aborted(format!("invalid height")))? }; @@ -146,7 +146,7 @@ impl ClientQuery for IbcQuery { .map_err(|e| tonic::Status::aborted(format!("couldn't get snapshot: {e}")))?; self.storage - .snapshot(height.revision_height - 1 as u64) + .snapshot(height.revision_height as u64) .ok_or(tonic::Status::aborted(format!("invalid height")))? }; diff --git a/crates/core/component/ibc/src/component/rpc/connection_query.rs b/crates/core/component/ibc/src/component/rpc/connection_query.rs index 9653bfe375..b41a93a3de 100644 --- a/crates/core/component/ibc/src/component/rpc/connection_query.rs +++ b/crates/core/component/ibc/src/component/rpc/connection_query.rs @@ -50,7 +50,7 @@ impl ConnectionQuery for IbcQuery .map_err(|e| tonic::Status::aborted(format!("couldn't get snapshot: {e}")))?; self.storage - .snapshot(height.revision_height - 1 as u64) + .snapshot(height.revision_height as u64) .ok_or(tonic::Status::aborted(format!("invalid height")))? };