11use std:: sync:: Arc ;
22
33use multiversx_chain_vm:: {
4- executor:: { BreakpointValue , VMHooks } ,
4+ executor:: BreakpointValue ,
55 tx_mock:: { TxContext , TxContextRef , TxContextStack , TxPanic } ,
66 vm_hooks:: { DebugApiVMHooksHandler , VMHooksDispatcher } ,
77} ;
88use multiversx_sc:: { chain_core:: types:: ReturnCode , err_msg} ;
99
10- use crate :: debug_executor:: { StaticVarData , StaticVarStack } ;
10+ use crate :: debug_executor:: { StaticVarData , StaticVarStack , VMHooksDebugger } ;
1111
1212use super :: { DebugHandle , VMHooksApi , VMHooksApiBackend } ;
1313
@@ -19,7 +19,7 @@ impl VMHooksApiBackend for DebugApiBackend {
1919
2020 fn with_vm_hooks < R , F > ( f : F ) -> R
2121 where
22- F : FnOnce ( & dyn VMHooks ) -> R ,
22+ F : FnOnce ( & dyn VMHooksDebugger ) -> R ,
2323 {
2424 let top_context = TxContextStack :: static_peek ( ) ;
2525 let wrapper = DebugApiVMHooksHandler :: new ( top_context) ;
@@ -29,7 +29,7 @@ impl VMHooksApiBackend for DebugApiBackend {
2929
3030 fn with_vm_hooks_ctx_1 < R , F > ( handle : Self :: HandleType , f : F ) -> R
3131 where
32- F : FnOnce ( & dyn VMHooks ) -> R ,
32+ F : FnOnce ( & dyn VMHooksDebugger ) -> R ,
3333 {
3434 let wrapper = DebugApiVMHooksHandler :: new ( handle. context ) ;
3535 let dispatcher = VMHooksDispatcher :: new ( Box :: new ( wrapper) ) ;
@@ -38,7 +38,7 @@ impl VMHooksApiBackend for DebugApiBackend {
3838
3939 fn with_vm_hooks_ctx_2 < R , F > ( handle1 : Self :: HandleType , handle2 : Self :: HandleType , f : F ) -> R
4040 where
41- F : FnOnce ( & dyn VMHooks ) -> R ,
41+ F : FnOnce ( & dyn VMHooksDebugger ) -> R ,
4242 {
4343 assert_handles_on_same_context ( & handle1, & handle2) ;
4444 Self :: with_vm_hooks_ctx_1 ( handle1, f)
@@ -51,7 +51,7 @@ impl VMHooksApiBackend for DebugApiBackend {
5151 f : F ,
5252 ) -> R
5353 where
54- F : FnOnce ( & dyn VMHooks ) -> R ,
54+ F : FnOnce ( & dyn VMHooksDebugger ) -> R ,
5555 {
5656 assert_handles_on_same_context ( & handle1, & handle2) ;
5757 assert_handles_on_same_context ( & handle1, & handle3) ;
0 commit comments