Skip to content

Commit 4828d7f

Browse files
fix(starknet_gateway): remove compiled_class_hash_mismatch test
This test was removed until convert_rpc_tx_to_internal_rpc_tx is implemented
1 parent 6590c16 commit 4828d7f

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

crates/starknet_gateway/src/gateway_test.rs

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@ use std::sync::Arc;
33
use assert_matches::assert_matches;
44
use blockifier::context::ChainInfo;
55
use 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;
77
use mockall::predicate::eq;
88
use papyrus_network_types::network_types::BroadcastedMessageMetadata;
99
use papyrus_test_utils::{get_rng, GetTestInstance};
1010
use rstest::{fixture, rstest};
11-
use starknet_api::core::{ChainId, CompiledClassHash, ContractAddress, Nonce};
11+
use starknet_api::core::{ChainId, ContractAddress, Nonce};
1212
use starknet_api::rpc_transaction::{
1313
InternalRpcTransaction,
1414
InternalRpcTransactionWithoutTxHash,
15-
RpcDeclareTransaction,
1615
RpcTransaction,
1716
};
1817
use 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

Comments
 (0)