Skip to content

Commit 64a1075

Browse files
committed
Update changelog
1 parent 74a4758 commit 64a1075

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

vm/src/vm/vm_core.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,6 +1362,7 @@ impl VirtualMachineBuilder {
13621362
mod tests {
13631363
use super::*;
13641364
use crate::felt_hex;
1365+
use crate::hint_processor::builtin_hint_processor::memcpy_hint_utils::add_segment;
13651366
use crate::math_utils::{qm31_coordinates_to_packed_reduced, STWO_PRIME};
13661367
use crate::stdlib::collections::HashMap;
13671368
use crate::types::instruction::OpcodeExtension;
@@ -4270,10 +4271,12 @@ mod tests {
42704271
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
42714272
fn test_step_for_preset_memory_with_alloc_hint() {
42724273
let mut vm = vm!(true);
4273-
let hint_data = vec![any_box!(HintProcessorData::new_default(
4274+
let mut hint_processor_data = HintProcessorData::new_default(
42744275
"memory[ap] = segments.add()".to_string(),
42754276
HashMap::new(),
4276-
))];
4277+
);
4278+
hint_processor_data.f = Some(add_segment);
4279+
let hint_data = vec![any_box!(hint_processor_data)];
42774280

42784281
//Initialzie registers
42794282
run_context!(vm, 3, 2, 2);

0 commit comments

Comments
 (0)