Skip to content

Commit b2c8ebb

Browse files
committed
Bumped cairo-vm version to v2.5.0.
1 parent a668b7c commit b2c8ebb

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ assert_matches = "1.5"
9494
bimap = "0.6.3"
9595
bincode = { version = "2", features = ["serde"] }
9696
cairo-lang-primitive-token = "1"
97-
cairo-vm = { version = "2.4.1", features = ["mod_builtin"] }
97+
cairo-vm = { version = "2.5.0", features = ["mod_builtin"] }
9898
clap = { version = "4.5.29", features = ["derive"] }
9999
colored = "3.0.0"
100100
const-fnv1a-hash = "1.1.0"

crates/cairo-lang-runner/src/casm_run/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use std::borrow::Cow;
33
use std::collections::{HashMap, VecDeque};
44
use std::ops::{Shl, Sub};
55
use std::vec::IntoIter;
6+
use std::rc::Rc;
67

78
use ark_ff::{BigInteger, PrimeField};
89
use cairo_lang_casm::hints::{CoreHint, DeprecatedHint, ExternalHint, Hint, StarknetHint};
@@ -421,7 +422,6 @@ impl HintProcessorLogic for CairoHintProcessor<'_> {
421422
vm: &mut VirtualMachine,
422423
exec_scopes: &mut ExecutionScopes,
423424
hint_data: &Box<dyn Any>,
424-
_constants: &HashMap<String, Felt252>,
425425
) -> Result<(), HintError> {
426426
let hint = hint_data.downcast_ref::<Hint>().ok_or(HintError::WrongHintData)?;
427427
let hint = match hint {
@@ -468,6 +468,7 @@ impl HintProcessorLogic for CairoHintProcessor<'_> {
468468
_ap_tracking_data: &ApTracking,
469469
_reference_ids: &HashMap<String, usize>,
470470
_references: &[HintReference],
471+
_constants: Rc<HashMap<String, Felt252>>,
471472
) -> Result<Box<dyn Any>, VirtualMachineError> {
472473
Ok(Box::new(self.string_to_hint[hint_code].clone()))
473474
}

0 commit comments

Comments
 (0)