From 8fd014dc46ecc43874a310f2c279b746b5017b66 Mon Sep 17 00:00:00 2001 From: meship-starkware Date: Tue, 10 Dec 2024 08:46:41 +0200 Subject: [PATCH] refactor(cairo_native): remove cairo native flag duplications --- .../blockifier/src/transaction/transactions_test.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/crates/blockifier/src/transaction/transactions_test.rs b/crates/blockifier/src/transaction/transactions_test.rs index 479ba7104ae..55a59791f2e 100644 --- a/crates/blockifier/src/transaction/transactions_test.rs +++ b/crates/blockifier/src/transaction/transactions_test.rs @@ -197,22 +197,14 @@ fn expected_validate_call_info( ) -> Option { let retdata = match cairo_version { CairoVersion::Cairo0 => Retdata::default(), - CairoVersion::Cairo1(RunnableCairo1::Casm) => retdata!(*constants::VALIDATE_RETDATA), - #[cfg(feature = "cairo_native")] - CairoVersion::Cairo1(RunnableCairo1::Native) => { - retdata!(*constants::VALIDATE_RETDATA) - } + CairoVersion::Cairo1(_) => retdata!(*constants::VALIDATE_RETDATA), }; // Extra range check in regular (invoke) validate call, due to passing the calldata as an array. let n_range_checks = match cairo_version { CairoVersion::Cairo0 => { usize::from(entry_point_selector_name == constants::VALIDATE_ENTRY_POINT_NAME) } - CairoVersion::Cairo1(RunnableCairo1::Casm) => { - if entry_point_selector_name == constants::VALIDATE_ENTRY_POINT_NAME { 7 } else { 2 } - } - #[cfg(feature = "cairo_native")] - CairoVersion::Cairo1(RunnableCairo1::Native) => { + CairoVersion::Cairo1(_) => { if entry_point_selector_name == constants::VALIDATE_ENTRY_POINT_NAME { 7 } else { 2 } } };