Skip to content

Commit

Permalink
feat: fix bugs in the tests and remove debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
varex83 committed Oct 24, 2024
1 parent 09183fb commit 73bf8f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions crates/blockifier/src/execution/execution_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions crates/blockifier/src/test_utils/contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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),
}
}

Expand Down

0 comments on commit 73bf8f3

Please sign in to comment.