@@ -2348,22 +2348,21 @@ where
23482348
23492349#[ cfg( test) ]
23502350mod tests {
2351+ use super :: * ;
2352+ use crate :: {
2353+ test_utils:: { test_trevm_with_funds, ALICE , BOB , LOG_DEPLOYED_BYTECODE } ,
2354+ NoopBlock , NoopCfg , TrevmBuilder ,
2355+ } ;
23512356 use alloy:: {
2357+ consensus:: constants:: ETH_TO_WEI ,
23522358 network:: { TransactionBuilder , TransactionBuilder7702 } ,
23532359 rpc:: types:: { Authorization , TransactionRequest } ,
23542360 signers:: SignerSync ,
2355- consensus:: constants:: ETH_TO_WEI ,
23562361 } ;
23572362 use revm:: {
2358- context:: transaction:: AuthorizationTr ,
2359- database:: InMemoryDB ,
2360- primitives:: bytes,
2361- } ;
2362- use crate :: {
2363- test_utils:: { test_trevm_with_funds, ALICE , BOB , LOG_BYTECODE } ,
2364- TrevmBuilder , NoopBlock , NoopCfg ,
2363+ context:: transaction:: AuthorizationTr , database:: InMemoryDB ,
2364+ inspector:: inspectors:: TracerEip3155 , primitives:: bytes,
23652365 } ;
2366- use super :: * ;
23672366
23682367 #[ test]
23692368 fn test_estimate_gas_simple_transfer ( ) {
@@ -2395,7 +2394,7 @@ mod tests {
23952394 let mut trevm =
23962395 TrevmBuilder :: new ( ) . with_db ( db) . with_spec_id ( SpecId :: PRAGUE ) . build_trevm ( ) . unwrap ( ) ;
23972396 let _ = trevm. test_set_balance ( ALICE . address ( ) , U256 :: from ( ETH_TO_WEI ) ) ;
2398- let _ = trevm. set_bytecode_unchecked ( log_address, Bytecode :: new_raw ( LOG_BYTECODE . into ( ) ) ) ;
2397+ let _ = trevm. set_bytecode_unchecked ( log_address, Bytecode :: new_raw ( LOG_DEPLOYED_BYTECODE ) ) ;
23992398
24002399 // Bob will sign the authorization.
24012400 let authorization = Authorization {
@@ -2417,6 +2416,7 @@ mod tests {
24172416 let ( estimation, trevm) =
24182417 trevm. fill_cfg ( & NoopCfg ) . fill_block ( & NoopBlock ) . fill_tx ( & tx) . estimate_gas ( ) . unwrap ( ) ;
24192418
2419+ dbg ! ( & estimation) ;
24202420 assert ! ( estimation. is_success( ) ) ;
24212421
24222422 let tx = tx. with_gas_limit ( estimation. limit ( ) ) ;
0 commit comments