@@ -53,17 +53,23 @@ impl<DB: Database> revm::Inspector<DB> for Inspector {
5353 & mut self ,
5454 interp : & mut Interpreter ,
5555 data : & mut EVMData < ' _ , DB > ,
56+ is_static : bool ,
5657 ) -> InstructionResult {
5758 call_inspectors ! ( [ & mut self . tracer] , |inspector| {
58- inspector. initialize_interp( interp, data) ;
59+ inspector. initialize_interp( interp, data, is_static ) ;
5960 } ) ;
6061 InstructionResult :: Continue
6162 }
6263
6364 #[ inline]
64- fn step ( & mut self , interp : & mut Interpreter , data : & mut EVMData < ' _ , DB > ) -> InstructionResult {
65+ fn step (
66+ & mut self ,
67+ interp : & mut Interpreter ,
68+ data : & mut EVMData < ' _ , DB > ,
69+ is_static : bool ,
70+ ) -> InstructionResult {
6571 call_inspectors ! ( [ & mut self . tracer] , |inspector| {
66- inspector. step( interp, data) ;
72+ inspector. step( interp, data, is_static ) ;
6773 } ) ;
6874 InstructionResult :: Continue
6975 }
@@ -86,10 +92,11 @@ impl<DB: Database> revm::Inspector<DB> for Inspector {
8692 & mut self ,
8793 interp : & mut Interpreter ,
8894 data : & mut EVMData < ' _ , DB > ,
95+ is_static : bool ,
8996 eval : InstructionResult ,
9097 ) -> InstructionResult {
9198 call_inspectors ! ( [ & mut self . tracer] , |inspector| {
92- inspector. step_end( interp, data, eval) ;
99+ inspector. step_end( interp, data, is_static , eval) ;
93100 } ) ;
94101 eval
95102 }
@@ -99,9 +106,10 @@ impl<DB: Database> revm::Inspector<DB> for Inspector {
99106 & mut self ,
100107 data : & mut EVMData < ' _ , DB > ,
101108 call : & mut CallInputs ,
109+ is_static : bool ,
102110 ) -> ( InstructionResult , Gas , Bytes ) {
103111 call_inspectors ! ( [ & mut self . tracer, Some ( & mut self . log_collector) ] , |inspector| {
104- inspector. call( data, call) ;
112+ inspector. call( data, call, is_static ) ;
105113 } ) ;
106114
107115 ( InstructionResult :: Continue , Gas :: new ( call. gas_limit ) , Bytes :: new ( ) )
@@ -115,9 +123,10 @@ impl<DB: Database> revm::Inspector<DB> for Inspector {
115123 remaining_gas : Gas ,
116124 ret : InstructionResult ,
117125 out : Bytes ,
126+ is_static : bool ,
118127 ) -> ( InstructionResult , Gas , Bytes ) {
119128 call_inspectors ! ( [ & mut self . tracer] , |inspector| {
120- inspector. call_end( data, inputs, remaining_gas, ret, out. clone( ) ) ;
129+ inspector. call_end( data, inputs, remaining_gas, ret, out. clone( ) , is_static ) ;
121130 } ) ;
122131 ( ret, remaining_gas, out)
123132 }
0 commit comments