You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,10 +18,6 @@ Both branches support Stwo prover opcodes (Blake2s, QM31) since v2.0.0.
18
18
19
19
* fix: Fix off-by-one comparisons in `split_int`, `assert_250_bit`, and `sqrt` hints [#2348](https://github.com/lambdaclass/cairo-vm/pull/2348)
20
20
21
-
* chore: Add `CairoFunctionRunner` for running Cairo entrypoints by name or PC, and broaden `CairoArg`/`MaybeRelocatable` conversions to support primitive signed/unsigned integers and big integers [#2352](https://github.com/lambdaclass/cairo-vm/pull/2352)
22
-
23
-
* chore: Add unit tests for `CairoFunctionRunner`, `CairoArg` conversions/macros, and `MaybeRelocatable` conversion macro coverage [#2354](https://github.com/lambdaclass/cairo-vm/pull/2354)
24
-
25
21
#### [3.2.0] - 2026-3-3
26
22
27
23
* fix: Change extended_resource_counter entry from u32 to usize [#2349](https://github.com/lambdaclass/cairo-vm/pull/2349)
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -246,6 +246,19 @@ When running a Cairo program directly using the Cairo-vm repository you would fi
246
246
cairo_runner.initialize_segments(None);
247
247
```
248
248
249
+
When using cairo-vm with the Starknet devnet there are additional parameters that are part of the OS context passed on to the `run_from_entrypoint` method that we do not have here when using it directly. These parameters are, for example, initial stacks of the builtins, which are the base of each of them and are needed as they are the implicit arguments of the function.
250
+
251
+
```rust
252
+
let_var=cairo_runner.run_from_entrypoint(
253
+
entrypoint,
254
+
vec![
255
+
&MaybeRelocatable::from(2).into(), //this is the entry point selector
256
+
&MaybeRelocatable::from((2,0)).into() //this would be the output_ptr for example if our cairo function uses it
257
+
],
258
+
false,
259
+
&muthint_processor,
260
+
);
261
+
```
249
262
### Running cairo 1 programs
250
263
251
264
To run a cairo 1 program enter in the folder `cd cairo1-run` and follow the [`cairo1-run documentation`](cairo1-run/README.md)
0 commit comments