From a75a137416b7ea3f11cf06b00c89ff8ac62f9820 Mon Sep 17 00:00:00 2001 From: AvivYossef-starkware Date: Mon, 4 Nov 2024 14:48:46 +0200 Subject: [PATCH] chore(blockifier_reexecution): add test cases --- .../resources/block_number_by_version.json | 7 +++++++ .../src/state_reader/rpc_https_test.rs | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 crates/blockifier_reexecution/resources/block_number_by_version.json diff --git a/crates/blockifier_reexecution/resources/block_number_by_version.json b/crates/blockifier_reexecution/resources/block_number_by_version.json new file mode 100644 index 0000000000..737fe41f9c --- /dev/null +++ b/crates/blockifier_reexecution/resources/block_number_by_version.json @@ -0,0 +1,7 @@ +{ + "0.13.0": 600001, + "0.13.1": 620978, + "0.13.1.1": 649367, + "0.13.2": 685878, + "0.13.2.1": 700000 +} \ No newline at end of file diff --git a/crates/blockifier_reexecution/src/state_reader/rpc_https_test.rs b/crates/blockifier_reexecution/src/state_reader/rpc_https_test.rs index cf05977972..8953f1a9f8 100644 --- a/crates/blockifier_reexecution/src/state_reader/rpc_https_test.rs +++ b/crates/blockifier_reexecution/src/state_reader/rpc_https_test.rs @@ -49,6 +49,18 @@ const EXAMPLE_L1_HANDLER_BLOCK_NUMBER: u64 = 868429; const EXAMPLE_L1_HANDLER_TX_HASH: &str = "0x02315145ae0290b7d49ea3f509b1084b5fcd70d0fea8bed04b83aa8af33e4d7e"; +#[allow(unused)] +const EXAMPLE_INVOKE_WITH_DEPLOY_SYSCALL_BLOCK_NUMBER: u64 = 870136; +#[allow(unused)] +const EXAMPLE_INVOKE_WITH_DEPLOY_SYSCALL_TX_HASH: &str = + "0x071374b61bfa449129ab54fc67be4cc5702450aac1a5c2515f65a29836e41d3e"; + +#[allow(unused)] +const EXAMPLE_INVOKE_WITH_REPLACE_CLASS_SYSCALL_BLOCK_NUMBER: u64 = 780008; +#[allow(unused)] +const EXAMPLE_INVOKE_WITH_REPLACE_CLASS_SYSCALL_TX_HASH: &str = + "0x0091200616808f50f37f79f568ee08b02908b52d6e0eaca26ab98976eac31533"; + #[fixture] pub fn test_block_number() -> BlockNumber { BlockNumber(EXAMPLE_BLOCK_NUMBER)