Skip to content

Commit a1490ef

Browse files
committed
updated info logs
1 parent d737a7b commit a1490ef

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

relayer/crates/starknet-integration-tests/src/tests/light_client.rs

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,6 @@ fn test_starknet_light_client() -> Result<(), Error> {
294294
.send_target_update_client_messages(DestinationTarget, &starknet_status.height)
295295
.await?;
296296

297-
info!(
298-
"submitted Starknet client to Cosmos to height {}",
299-
starknet_status.height
300-
);
301-
302297
{
303298
let client_state = cosmos_chain
304299
.query_client_state(
@@ -318,7 +313,7 @@ fn test_starknet_light_client() -> Result<(), Error> {
318313
.await?;
319314

320315
info!(
321-
"after updating Starknet consensus state height {:?} and root: {:?} on Cosmos",
316+
"after updating Starknet client state height {:?} and root: {:?} on Cosmos",
322317
client_state.client_state.latest_height, consensus_state.consensus_state.root
323318
);
324319
}
@@ -333,9 +328,14 @@ fn test_starknet_light_client() -> Result<(), Error> {
333328
.await?;
334329

335330
assert_eq!(
336-
consensus_state.consensus_state.root.into_vec(),
331+
consensus_state.consensus_state.root.clone().into_vec(),
337332
starknet_status.block_hash.to_bytes_be()
338333
);
334+
335+
info!(
336+
"updated Starknet consensus state to Cosmos to height {} and root: {:?}",
337+
starknet_status.height, consensus_state.consensus_state.root
338+
);
339339
}
340340

341341
{
@@ -354,11 +354,6 @@ fn test_starknet_light_client() -> Result<(), Error> {
354354
.send_target_update_client_messages(SourceTarget, &cosmos_status.height)
355355
.await?;
356356

357-
info!(
358-
"submitted Cosmos client to Starknet to height {}",
359-
cosmos_status.height
360-
);
361-
362357
{
363358
let client_state = starknet_chain
364359
.query_client_state(
@@ -381,7 +376,7 @@ fn test_starknet_light_client() -> Result<(), Error> {
381376
.await?;
382377

383378
info!(
384-
"after updating Cosmos consensus state height {:?} and root: {:?} on Starknet",
379+
"after updating Cosmos client state with height {:?} and root: {:?} on Starknet",
385380
client_state.latest_height, consensus_state.root
386381
);
387382
}
@@ -398,7 +393,7 @@ fn test_starknet_light_client() -> Result<(), Error> {
398393
// TODO(rano): add assert
399394

400395
info!(
401-
"updated Cosmos client to Starknet to height {} and root: {:?}",
396+
"updated Cosmos consensus state to Starknet to height {} and root: {:?}",
402397
cosmos_status.height, consensus_state.root
403398
);
404399
}

0 commit comments

Comments
 (0)