Skip to content

Commit

Permalink
test(blockifier): max validate\execute gas less than max possible sie…
Browse files Browse the repository at this point in the history
…rra gas
  • Loading branch information
aner-starkware committed Dec 16, 2024
1 parent 8784fc8 commit 22d2ee9
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use crate::retdata;
use crate::test_utils::contracts::FeatureContract;
use crate::test_utils::initial_test_state::test_state;
use crate::test_utils::{trivial_external_entry_point_new, CairoVersion, RunnableCairo1, BALANCE};
use crate::versioned_constants::VersionedConstants;

#[cfg_attr(feature = "cairo_native", test_case(RunnableCairo1::Native; "Native"))]
#[test_case(RunnableCairo1::Casm; "VM")]
Expand Down Expand Up @@ -54,6 +55,10 @@ fn test_stack_overflow() {
let mut state = test_state(&ChainInfo::create_for_testing(), BALANCE, &[(test_contract, 1)]);

let depth = felt!(1000000_u128);
assert!(
VersionedConstants::create_for_testing().initial_gas_no_user_l2_bound()
<= MAX_POSSIBLE_SIERRA_GAS
);
let entry_point_call = CallEntryPoint {
calldata: calldata![depth],
entry_point_selector: selector_from_name("test_stack_overflow"),
Expand Down

0 comments on commit 22d2ee9

Please sign in to comment.