Skip to content

Commit

Permalink
rename to query_latest_block
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Mar 7, 2024
1 parent 1561834 commit 531c3c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ibc-testkit/src/relayer/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ mod tests {
for _i in 0..num_iterations {
// Update client on chain B to latest height of A.
// - create the client update message with the latest header from A
let a_latest_header = ctx_a.query_latest_header().unwrap();
let a_latest_header = ctx_a.query_latest_block().unwrap();
let client_msg_b_res = build_client_update_datagram(
&ctx_b,
&client_on_b_for_a,
Expand Down Expand Up @@ -204,7 +204,7 @@ mod tests {
// Update client on chain A to latest height of B.
// - create the client update message with the latest header from B
// The test uses LightClientBlock that does not store the trusted height
let mut b_latest_header = ctx_b.query_latest_header().unwrap().clone().into_header();
let mut b_latest_header = ctx_b.query_latest_block().unwrap().clone().into_header();

let th = b_latest_header.height();
b_latest_header.set_trusted_height(th.decrement().unwrap());
Expand Down
2 changes: 1 addition & 1 deletion ibc-testkit/src/testapp/ibc/core/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ where
.expect("Never fails")
}

pub fn query_latest_header(&self) -> Option<&H::Block> {
pub fn query_latest_block(&self) -> Option<&H::Block> {
self.host_block(&self.latest_height())
}

Expand Down

0 comments on commit 531c3c9

Please sign in to comment.