@@ -32,9 +32,6 @@ use starknet::secp256_trait::Secp256Trait;
3232use starknet :: secp256k1 :: Secp256k1Point ;
3333use starknet :: {ClassHash , ContractAddress , SyscallResultTrait };
3434use crate :: EthAccountUpgradeable ;
35- use crate :: interfaces :: eth_account :: {
36- EthAccountUpgradeableABISafeDispatcher , EthAccountUpgradeableABISafeDispatcherTrait ,
37- };
3835use crate :: interfaces :: {
3936 EthAccountUpgradeableABIDispatcher , EthAccountUpgradeableABIDispatcherTrait ,
4037};
@@ -472,7 +469,7 @@ fn test_upgraded_event() {
472469}
473470
474471#[test]
475- #[feature( " safe_dispatcher " )]
472+ #[should_panic(expected : ' ENTRYPOINT_NOT_FOUND ' )]
476473fn test_v2_missing_camel_selector () {
477474 let (_ , v1 ) = setup_dispatcher (KEY_PAIR ());
478475 let contract_address = v1 . contract_address;
@@ -481,10 +478,8 @@ fn test_v2_missing_camel_selector() {
481478 start_cheat_caller_address (contract_address , contract_address );
482479 v1 . upgrade (v2_class_hash );
483480
484- let safe_dispatcher = EthAccountUpgradeableABISafeDispatcher { contract_address };
485- let result = safe_dispatcher . getPublicKey ();
486-
487- utils :: assert_entrypoint_not_found_error (result , selector! (" getPublicKey" ), contract_address )
481+ let dispatcher = EthAccountUpgradeableABIDispatcher { contract_address };
482+ dispatcher . getPublicKey ();
488483}
489484
490485#[test]
0 commit comments