From 73bf8f379e35935033c06c9b99078455e556f05b Mon Sep 17 00:00:00 2001 From: Bohdan Ohorodnii Date: Thu, 24 Oct 2024 22:23:03 +0300 Subject: [PATCH] feat: fix bugs in the tests and remove debug prints --- crates/blockifier/src/execution/execution_utils.rs | 3 --- .../blockifier/src/execution/syscalls/syscall_tests/deploy.rs | 2 +- crates/blockifier/src/test_utils/contracts.rs | 4 ++-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/crates/blockifier/src/execution/execution_utils.rs b/crates/blockifier/src/execution/execution_utils.rs index 4a3a0b9f6a0..ba9ee422987 100644 --- a/crates/blockifier/src/execution/execution_utils.rs +++ b/crates/blockifier/src/execution/execution_utils.rs @@ -85,9 +85,6 @@ pub fn execute_entry_point_call_wrapper( let current_tracked_resource = context.tracked_resource_stack.pop().expect("Unexpected empty tracked resource."); - println!("enable_reverts: {:?}", context.versioned_constants().enable_reverts); - println!("res: {:?}", res); - match res { Ok(call_info) => { if call_info.execution.failed && !context.versioned_constants().enable_reverts { diff --git a/crates/blockifier/src/execution/syscalls/syscall_tests/deploy.rs b/crates/blockifier/src/execution/syscalls/syscall_tests/deploy.rs index bb69edb1f85..8be788f671d 100644 --- a/crates/blockifier/src/execution/syscalls/syscall_tests/deploy.rs +++ b/crates/blockifier/src/execution/syscalls/syscall_tests/deploy.rs @@ -88,7 +88,7 @@ fn no_constructor_nonempty_calldata(deployer_contract: FeatureContract) { constructor." )); } -#[test_case(FeatureContract::TestContract(CairoVersion::Native),226750, 5210;"Native")] +#[test_case(FeatureContract::TestContract(CairoVersion::Native),236750, 5210;"Native")] #[test_case(FeatureContract::TestContract(CairoVersion::Cairo1),216750, 5210;"VM")] fn with_constructor( deployer_contract: FeatureContract, diff --git a/crates/blockifier/src/test_utils/contracts.rs b/crates/blockifier/src/test_utils/contracts.rs index 20f79d7eb29..bdb2ebf6755 100644 --- a/crates/blockifier/src/test_utils/contracts.rs +++ b/crates/blockifier/src/test_utils/contracts.rs @@ -24,7 +24,7 @@ use crate::execution::contract_class::{ NativeContractClassV1, }; use crate::execution::entry_point::CallEntryPoint; -use crate::test_utils::cairo_compile::{cairo0_compile, cairo1_compile, starknet_compile}; +use crate::test_utils::cairo_compile::{cairo0_compile, cairo1_compile, sierra_compile}; use crate::test_utils::{get_raw_contract_class, CairoVersion}; // This file contains featured contracts, used for tests. Use the function 'test_state' in @@ -320,7 +320,7 @@ impl FeatureContract { let (tag_override, cargo_nightly_arg) = self.fixed_tag_and_rust_toolchain(); cairo1_compile(self.get_source_path(), tag_override, cargo_nightly_arg) } - CairoVersion::Native => starknet_compile(self.get_source_path(), None, None), + CairoVersion::Native => sierra_compile(self.get_source_path(), None, None), } }