@@ -20,7 +20,7 @@ use alloy_primitives::{
2020} ;
2121use alloy_sol_types:: { SolCall , sol} ;
2222use foundry_evm_core:: {
23- EvmEnv , InspectorExt ,
23+ EvmEnv ,
2424 backend:: { Backend , BackendError , BackendResult , CowBackend , DatabaseExt , GLOBAL_FAIL_SLOT } ,
2525 constants:: {
2626 CALLER , CHEATCODE_ADDRESS , CHEATCODE_CONTRACT_HASH , DEFAULT_CREATE2_DEPLOYER ,
@@ -312,7 +312,7 @@ impl Executor {
312312
313313 #[ inline]
314314 pub fn create2_deployer ( & self ) -> Address {
315- self . inspector ( ) . create2_deployer ( )
315+ self . inspector ( ) . create2_deployer
316316 }
317317
318318 /// Deploys a contract and commits the new state to the underlying database.
@@ -489,20 +489,20 @@ impl Executor {
489489 /// The state after the call is **not** persisted.
490490 #[ instrument( name = "call" , level = "debug" , skip_all) ]
491491 pub fn call_with_env ( & self , mut env : Env ) -> eyre:: Result < RawCallResult > {
492- let mut inspector = self . inspector ( ) . clone ( ) ;
492+ let mut stack = self . inspector ( ) . clone ( ) ;
493493 let mut backend = CowBackend :: new_borrowed ( self . backend ( ) ) ;
494- let result = backend. inspect ( & mut env, & mut inspector ) ?;
495- convert_executed_result ( env, inspector , result, backend. has_state_snapshot_failure ( ) )
494+ let result = backend. inspect ( & mut env, stack . as_inspector ( ) ) ?;
495+ convert_executed_result ( env, stack , result, backend. has_state_snapshot_failure ( ) )
496496 }
497497
498498 /// Execute the transaction configured in `env.tx`.
499499 #[ instrument( name = "transact" , level = "debug" , skip_all) ]
500500 pub fn transact_with_env ( & mut self , mut env : Env ) -> eyre:: Result < RawCallResult > {
501- let mut inspector = self . inspector ( ) . clone ( ) ;
501+ let mut stack = self . inspector ( ) . clone ( ) ;
502502 let backend = self . backend_mut ( ) ;
503- let result = backend. inspect ( & mut env, & mut inspector ) ?;
503+ let result = backend. inspect ( & mut env, stack . as_inspector ( ) ) ?;
504504 let mut result =
505- convert_executed_result ( env, inspector , result, backend. has_state_snapshot_failure ( ) ) ?;
505+ convert_executed_result ( env, stack , result, backend. has_state_snapshot_failure ( ) ) ?;
506506 self . commit ( & mut result) ;
507507 Ok ( result)
508508 }
0 commit comments