@@ -294,11 +294,6 @@ fn test_starknet_light_client() -> Result<(), Error> {
294
294
. send_target_update_client_messages ( DestinationTarget , & starknet_status. height )
295
295
. await ?;
296
296
297
- info ! (
298
- "submitted Starknet client to Cosmos to height {}" ,
299
- starknet_status. height
300
- ) ;
301
-
302
297
{
303
298
let client_state = cosmos_chain
304
299
. query_client_state (
@@ -318,7 +313,7 @@ fn test_starknet_light_client() -> Result<(), Error> {
318
313
. await ?;
319
314
320
315
info ! (
321
- "after updating Starknet consensus state height {:?} and root: {:?} on Cosmos" ,
316
+ "after updating Starknet client state height {:?} and root: {:?} on Cosmos" ,
322
317
client_state. client_state. latest_height, consensus_state. consensus_state. root
323
318
) ;
324
319
}
@@ -333,9 +328,14 @@ fn test_starknet_light_client() -> Result<(), Error> {
333
328
. await ?;
334
329
335
330
assert_eq ! (
336
- consensus_state. consensus_state. root. into_vec( ) ,
331
+ consensus_state. consensus_state. root. clone ( ) . into_vec( ) ,
337
332
starknet_status. block_hash. to_bytes_be( )
338
333
) ;
334
+
335
+ info ! (
336
+ "updated Starknet consensus state to Cosmos to height {} and root: {:?}" ,
337
+ starknet_status. height, consensus_state. consensus_state. root
338
+ ) ;
339
339
}
340
340
341
341
{
@@ -354,11 +354,6 @@ fn test_starknet_light_client() -> Result<(), Error> {
354
354
. send_target_update_client_messages ( SourceTarget , & cosmos_status. height )
355
355
. await ?;
356
356
357
- info ! (
358
- "submitted Cosmos client to Starknet to height {}" ,
359
- cosmos_status. height
360
- ) ;
361
-
362
357
{
363
358
let client_state = starknet_chain
364
359
. query_client_state (
@@ -381,7 +376,7 @@ fn test_starknet_light_client() -> Result<(), Error> {
381
376
. await ?;
382
377
383
378
info ! (
384
- "after updating Cosmos consensus state height {:?} and root: {:?} on Starknet" ,
379
+ "after updating Cosmos client state with height {:?} and root: {:?} on Starknet" ,
385
380
client_state. latest_height, consensus_state. root
386
381
) ;
387
382
}
@@ -398,7 +393,7 @@ fn test_starknet_light_client() -> Result<(), Error> {
398
393
// TODO(rano): add assert
399
394
400
395
info ! (
401
- "updated Cosmos client to Starknet to height {} and root: {:?}" ,
396
+ "updated Cosmos consensus state to Starknet to height {} and root: {:?}" ,
402
397
cosmos_status. height, consensus_state. root
403
398
) ;
404
399
}
0 commit comments