@@ -3,16 +3,15 @@ use std::sync::Arc;
33use assert_matches:: assert_matches;
44use blockifier:: context:: ChainInfo ;
55use blockifier:: test_utils:: { CairoVersion , RunnableCairo1 } ;
6- use mempool_test_utils:: starknet_api_test_utils:: { declare_tx , invoke_tx} ;
6+ use mempool_test_utils:: starknet_api_test_utils:: invoke_tx;
77use mockall:: predicate:: eq;
88use papyrus_network_types:: network_types:: BroadcastedMessageMetadata ;
99use papyrus_test_utils:: { get_rng, GetTestInstance } ;
1010use rstest:: { fixture, rstest} ;
11- use starknet_api:: core:: { ChainId , CompiledClassHash , ContractAddress , Nonce } ;
11+ use starknet_api:: core:: { ChainId , ContractAddress , Nonce } ;
1212use starknet_api:: rpc_transaction:: {
1313 InternalRpcTransaction ,
1414 InternalRpcTransactionWithoutTxHash ,
15- RpcDeclareTransaction ,
1615 RpcTransaction ,
1716} ;
1817use starknet_api:: transaction:: { InvokeTransaction , TransactionHash , TransactionVersion } ;
@@ -170,17 +169,5 @@ async fn test_add_tx(
170169// result of `add_tx`).
171170// TODO(shahak): Test that when an error occurs in handle_request, then it returns the given p2p
172171// metadata.
173-
174- #[ rstest]
175- #[ tokio:: test]
176- async fn test_compiled_class_hash_mismatch ( mock_dependencies : MockDependencies ) {
177- let mut declare_tx =
178- assert_matches ! ( declare_tx( ) , RpcTransaction :: Declare ( RpcDeclareTransaction :: V3 ( tx) ) => tx) ;
179- declare_tx. compiled_class_hash = CompiledClassHash :: default ( ) ;
180- let tx = RpcTransaction :: Declare ( RpcDeclareTransaction :: V3 ( declare_tx) ) ;
181-
182- let gateway = mock_dependencies. gateway ( ) ;
183-
184- let err = gateway. add_tx ( tx, None ) . await . unwrap_err ( ) ;
185- assert_matches ! ( err, GatewaySpecError :: CompiledClassHashMismatch ) ;
186- }
172+ // TODO(noamsp): Restore test_compiled_class_hash_mismatch once class manager component is
173+ // implemented.
0 commit comments