Skip to content

Commit b1917c8

Browse files
committed
Updated version of cairo-vm.
1 parent 6d474e0 commit b1917c8

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ assert_matches = "1.5"
107107
bimap = "0.6.3"
108108
bincode = { version = "2", features = ["serde"] }
109109
cairo-lang-primitive-token = "1"
110-
cairo-vm = { version = "2.5.0", features = ["mod_builtin"] }
110+
cairo-vm = { version = "3.0.0", features = ["mod_builtin"] }
111111
clap = { version = "4.5.42", features = ["derive"] }
112112
colored = "3.0.0"
113113
const-fnv1a-hash = "1.1.0"
@@ -147,7 +147,7 @@ serde_json = "1.0.142"
147147
sha2 = "0.10.9"
148148
sha3 = "0.10.8"
149149
smol_str = { version = "0.3.2", default-features = false }
150-
starknet-types-core = { version = "0.2.0", features = ["hash", "prime-bigint", "serde"] }
150+
starknet-types-core = { version = "0.2.4", features = ["hash", "prime-bigint", "serde"] }
151151
syn = { version = "2.0.104", features = ["extra-traits", "full"] }
152152
test-case = "3.3.1"
153153
test-case-macros = "3.3.1"

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::any::Any;
22
use std::borrow::Cow;
33
use std::collections::{HashMap, VecDeque};
44
use std::ops::{Shl, Sub};
5-
use std::rc::Rc;
5+
use std::sync::Arc;
66
use std::vec::IntoIter;
77

88
use ark_ff::{BigInteger, PrimeField};
@@ -468,7 +468,8 @@ impl HintProcessorLogic for CairoHintProcessor<'_> {
468468
_ap_tracking_data: &ApTracking,
469469
_reference_ids: &HashMap<String, usize>,
470470
_references: &[HintReference],
471-
_constants: Rc<HashMap<String, Felt252>>,
471+
_accessible_scopes: &[String],
472+
_constants: Arc<HashMap<String, Felt252>>,
472473
) -> Result<Box<dyn Any>, VirtualMachineError> {
473474
Ok(Box::new(self.string_to_hint[hint_code].clone()))
474475
}
@@ -2339,8 +2340,8 @@ pub fn run_function_with_runner(
23392340
additional_initialization(&mut runner.vm)?;
23402341

23412342
runner.run_until_pc(end, hint_processor).map_err(CairoRunError::from)?;
2342-
runner.end_run(true, false, hint_processor).map_err(CairoRunError::from)?;
2343-
runner.relocate(true).map_err(CairoRunError::from)?;
2343+
runner.end_run(true, false, hint_processor, false).map_err(CairoRunError::from)?;
2344+
runner.relocate(true, true).map_err(CairoRunError::from)?;
23442345
Ok(())
23452346
}
23462347

0 commit comments

Comments
 (0)