diff --git a/crates/blockifier_reexecution/src/state_reader/raw_rpc_json_test.rs b/crates/blockifier_reexecution/src/state_reader/raw_rpc_json_test.rs index fc19ff217c..7b928b2015 100644 --- a/crates/blockifier_reexecution/src/state_reader/raw_rpc_json_test.rs +++ b/crates/blockifier_reexecution/src/state_reader/raw_rpc_json_test.rs @@ -19,7 +19,7 @@ use starknet_gateway::rpc_objects::BlockHeader; use crate::state_reader::compile::legacy_to_contract_class_v0; use crate::state_reader::serde_utils::deserialize_transaction_json_to_starknet_api_tx; -use crate::state_reader::utils::ReexecutionStateMaps; +use crate::state_reader::utils::{reexecute_block_for_testing, ReexecutionStateMaps}; #[fixture] fn block_header() -> BlockHeader { @@ -152,3 +152,18 @@ fn serialize_state_maps() { assert_eq!(serializable_state_maps, deserialized_state_maps); assert_eq!(original_state_maps, deserialized_state_maps.try_into().unwrap()); } + +#[rstest] +// TODO(Aner): Add block for each starknet version and for declare, deploy, replace_class, etc. +#[case::v_0_13_0(600001)] +#[case::v_0_13_1(620978)] +#[case::v_0_13_1_1(649367)] +#[case::v_0_13_2(685878)] +#[case::v_0_13_2_1(700000)] +#[case::v_0_13_2_1(750000)] +#[case::invoke_with_deploy(870136)] +#[case::invoke_with_replace_class(780008)] +#[ignore = "Requires downloading JSON files prior to running; Long test, run with --release flag."] +fn test_block_reexecution(#[case] block_number: u64) { + reexecute_block_for_testing(block_number); +}