diff --git a/crates/blockifier/src/execution/entry_point_execution.rs b/crates/blockifier/src/execution/entry_point_execution.rs index 3ebae0ad8e..fc5e9e1ff5 100644 --- a/crates/blockifier/src/execution/entry_point_execution.rs +++ b/crates/blockifier/src/execution/entry_point_execution.rs @@ -195,12 +195,15 @@ fn prepare_program_extra_data( read_only_segments: &mut ReadOnlySegments, ) -> Result { // Create the builtin cost segment, with dummy values. - let mut data = vec![]; + let data = vec![ + MaybeRelocatable::from(4130), // Pesetsen + MaybeRelocatable::from(594), // Bitwise + MaybeRelocatable::from(4166), // EcOp + MaybeRelocatable::from(500), // Posidon + MaybeRelocatable::from(234), // AddMod + MaybeRelocatable::from(616), // MulMod + ]; - // TODO(spapini): Put real costs here. - for _i in 0..20 { - data.push(MaybeRelocatable::from(0)); - } let builtin_cost_segment_start = read_only_segments.allocate(&mut runner.vm, &data)?; // Put a pointer to the builtin cost segment at the end of the program (after the diff --git a/crates/blockifier/src/execution/syscalls/syscall_tests/secp.rs b/crates/blockifier/src/execution/syscalls/syscall_tests/secp.rs index 716fa534a2..60b93c0b9c 100644 --- a/crates/blockifier/src/execution/syscalls/syscall_tests/secp.rs +++ b/crates/blockifier/src/execution/syscalls/syscall_tests/secp.rs @@ -9,7 +9,7 @@ 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, BALANCE}; -#[test_case(FeatureContract::TestContract(CairoVersion::Cairo1), 17022270; "VM")] +#[test_case(FeatureContract::TestContract(CairoVersion::Cairo1), 17041278; "VM")] fn test_secp256k1(test_contract: FeatureContract, expected_gas: u64) { let chain_info = &ChainInfo::create_for_testing(); let mut state = test_state(chain_info, BALANCE, &[(test_contract, 1)]);