@@ -61,21 +61,27 @@ impl<DB: Database> revm::Inspector<DB> for Inspector {
6161 & mut self ,
6262 interp : & mut Interpreter ,
6363 data : & mut EVMData < ' _ , DB > ,
64+ is_static : bool ,
6465 ) -> InstructionResult {
6566 call_inspectors ! (
6667 inspector,
6768 [ & mut self . gas. as_deref( ) . map( |gas| gas. borrow_mut( ) ) , & mut self . tracer] ,
68- { inspector. initialize_interp( interp, data) }
69+ { inspector. initialize_interp( interp, data, is_static ) }
6970 ) ;
7071 InstructionResult :: Continue
7172 }
7273
73- fn step ( & mut self , interp : & mut Interpreter , data : & mut EVMData < ' _ , DB > ) -> InstructionResult {
74+ fn step (
75+ & mut self ,
76+ interp : & mut Interpreter ,
77+ data : & mut EVMData < ' _ , DB > ,
78+ is_static : bool ,
79+ ) -> InstructionResult {
7480 call_inspectors ! (
7581 inspector,
7682 [ & mut self . gas. as_deref( ) . map( |gas| gas. borrow_mut( ) ) , & mut self . tracer] ,
7783 {
78- inspector. step( interp, data) ;
84+ inspector. step( interp, data, is_static ) ;
7985 }
8086 ) ;
8187 InstructionResult :: Continue
@@ -105,13 +111,14 @@ impl<DB: Database> revm::Inspector<DB> for Inspector {
105111 & mut self ,
106112 interp : & mut Interpreter ,
107113 data : & mut EVMData < ' _ , DB > ,
114+ is_static : bool ,
108115 eval : InstructionResult ,
109116 ) -> InstructionResult {
110117 call_inspectors ! (
111118 inspector,
112119 [ & mut self . gas. as_deref( ) . map( |gas| gas. borrow_mut( ) ) , & mut self . tracer] ,
113120 {
114- inspector. step_end( interp, data, eval) ;
121+ inspector. step_end( interp, data, is_static , eval) ;
115122 }
116123 ) ;
117124 eval
@@ -121,6 +128,7 @@ impl<DB: Database> revm::Inspector<DB> for Inspector {
121128 & mut self ,
122129 data : & mut EVMData < ' _ , DB > ,
123130 call : & mut CallInputs ,
131+ is_static : bool ,
124132 ) -> ( InstructionResult , Gas , Bytes ) {
125133 call_inspectors ! (
126134 inspector,
@@ -130,7 +138,7 @@ impl<DB: Database> revm::Inspector<DB> for Inspector {
130138 Some ( & mut self . log_collector)
131139 ] ,
132140 {
133- inspector. call( data, call) ;
141+ inspector. call( data, call, is_static ) ;
134142 }
135143 ) ;
136144
@@ -144,12 +152,13 @@ impl<DB: Database> revm::Inspector<DB> for Inspector {
144152 remaining_gas : Gas ,
145153 ret : InstructionResult ,
146154 out : Bytes ,
155+ is_static : bool ,
147156 ) -> ( InstructionResult , Gas , Bytes ) {
148157 call_inspectors ! (
149158 inspector,
150159 [ & mut self . gas. as_deref( ) . map( |gas| gas. borrow_mut( ) ) , & mut self . tracer] ,
151160 {
152- inspector. call_end( data, inputs, remaining_gas, ret, out. clone( ) ) ;
161+ inspector. call_end( data, inputs, remaining_gas, ret, out. clone( ) , is_static ) ;
153162 }
154163 ) ;
155164 ( ret, remaining_gas, out)
0 commit comments