@@ -317,7 +317,8 @@ impl PluginServer<ModuleCall, ModuleCallback> for Module {
317
317
} )
318
318
. filter ( |( typ, _, _) | typ. name . 0 . as_str ( ) != "CreateLensClient" )
319
319
. map ( |( typ, data, hash) | {
320
- let event = match dbg ! ( typ) . name . 0 . as_str ( ) {
320
+ let event_type = typ. name . 0 . as_str ( ) ;
321
+ let event = match event_type {
321
322
"CreateClient" => from_raw_event :: < ibc:: CreateClient > ( data) ,
322
323
"UpdateClient" => from_raw_event :: < ibc:: UpdateClient > ( data) ,
323
324
"ConnectionOpenInit" => from_raw_event :: < ibc:: ConnectionOpenInit > ( data) ,
@@ -337,6 +338,9 @@ impl PluginServer<ModuleCall, ModuleCallback> for Module {
337
338
"TimeoutPacket" => from_raw_event :: < ibc:: TimeoutPacket > ( data) ,
338
339
unknown => panic ! ( "unknown event `{unknown}`" ) ,
339
340
} ;
341
+
342
+ info ! ( event_type = %event_type, tx_hash = %hash, height = %height, "raw movement event" ) ;
343
+
340
344
// TODO: Check the type before deserializing
341
345
call ( PluginMessage :: new (
342
346
self . plugin_name ( ) ,
@@ -753,10 +757,10 @@ impl PluginServer<ModuleCall, ModuleCallback> for Module {
753
757
events:: IbcEvent :: TimeoutPacket ( _) => todo ! ( ) ,
754
758
} ;
755
759
756
- ibc_union_spec:: log_event ( & full_event, & self . chain_id ) ;
757
-
758
760
let voyager_client = e. try_get :: < VoyagerClient > ( ) ?;
759
761
762
+ ibc_union_spec:: log_event ( & full_event, & self . chain_id ) ;
763
+
760
764
let client_info = voyager_client
761
765
. client_info :: < IbcUnion > ( self . chain_id . clone ( ) , client_id)
762
766
. await ?;
0 commit comments