@@ -2535,7 +2535,6 @@ mod tests {
2535
2535
use edr_eth:: {
2536
2536
remote:: { eth:: CallRequest , PreEip1898BlockSpec } ,
2537
2537
spec:: chain_hardfork_activations,
2538
- transaction:: { Eip155TransactionRequest , TransactionKind , TransactionRequest } ,
2539
2538
} ;
2540
2539
use edr_evm:: { hex, MineOrdering , RemoteBlock , TransactionError } ;
2541
2540
use edr_test_utils:: env:: get_alchemy_url;
@@ -3413,56 +3412,6 @@ mod tests {
3413
3412
Ok ( ( ) )
3414
3413
}
3415
3414
3416
- #[ test]
3417
- fn transaction_by_hash_for_impersonated_account ( ) -> anyhow:: Result < ( ) > {
3418
- let mut fixture = ProviderTestFixture :: new_local ( ) ?;
3419
-
3420
- let impersonated_account: Address = "0x67091a7dd65bf4f1e95af0a479fbc782b61c129a" . parse ( ) ?;
3421
- fixture
3422
- . provider_data
3423
- . impersonate_account ( impersonated_account) ;
3424
-
3425
- fixture
3426
- . provider_data
3427
- . set_balance ( impersonated_account, one_ether ( ) ) ?;
3428
-
3429
- let request = TransactionRequest :: Eip155 ( Eip155TransactionRequest {
3430
- kind : TransactionKind :: Call ( Address :: ZERO ) ,
3431
- gas_limit : 30_000 ,
3432
- gas_price : U256 :: from ( 42_000_000_000_u64 ) ,
3433
- value : U256 :: from ( 1 ) ,
3434
- input : Bytes :: default ( ) ,
3435
- nonce : 0 ,
3436
- chain_id : fixture. provider_data . chain_id ( ) ,
3437
- } )
3438
- . fake_sign ( & impersonated_account) ;
3439
- let transaction = ExecutableTransaction :: with_caller (
3440
- fixture. provider_data . spec_id ( ) ,
3441
- request,
3442
- impersonated_account,
3443
- ) ?;
3444
-
3445
- fixture. provider_data . set_auto_mining ( true ) ;
3446
- let SendTransactionResult {
3447
- transaction_hash,
3448
- transaction_result,
3449
- ..
3450
- } = fixture. provider_data . send_transaction ( transaction) ?;
3451
- assert ! ( transaction_result. is_some( ) ) ;
3452
-
3453
- let transaction_result = fixture
3454
- . provider_data
3455
- . transaction_by_hash ( & transaction_hash) ?
3456
- . context ( "transaction not found" ) ?;
3457
-
3458
- assert_eq ! (
3459
- transaction_result. signed_transaction. hash( ) ,
3460
- & transaction_hash
3461
- ) ;
3462
-
3463
- Ok ( ( ) )
3464
- }
3465
-
3466
3415
#[ test]
3467
3416
fn reset_local_to_forking ( ) -> anyhow:: Result < ( ) > {
3468
3417
let mut fixture = ProviderTestFixture :: new_local ( ) ?;
0 commit comments