Skip to content

Commit d101ee8

Browse files
committed
made more attributes public
1 parent 576256c commit d101ee8

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

vm/src/types/program.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ use arbitrary::{Arbitrary, Unstructured};
6161
// Fields in `Program` (other than `SharedProgramData` itself) are used by the main logic.
6262
#[derive(Clone, Default, Debug, PartialEq, Eq)]
6363
pub struct SharedProgramData {
64-
pub(crate) data: Vec<MaybeRelocatable>,
64+
pub data: Vec<MaybeRelocatable>,
6565
pub hints_collection: HintsCollection,
6666
pub(crate) main: Option<usize>,
6767
//start and end labels will only be used in proof-mode

vm/src/vm/runners/cairo_runner.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,16 +144,16 @@ pub struct CairoRunner {
144144
pub vm: VirtualMachine,
145145
pub(crate) program: Program,
146146
layout: CairoLayout,
147-
final_pc: Option<Relocatable>,
147+
pub final_pc: Option<Relocatable>,
148148
pub program_base: Option<Relocatable>,
149-
execution_base: Option<Relocatable>,
149+
pub execution_base: Option<Relocatable>,
150150
entrypoint: Option<usize>,
151-
initial_ap: Option<Relocatable>,
152-
initial_fp: Option<Relocatable>,
153-
initial_pc: Option<Relocatable>,
151+
pub initial_ap: Option<Relocatable>,
152+
pub initial_fp: Option<Relocatable>,
153+
pub initial_pc: Option<Relocatable>,
154154
run_ended: bool,
155155
segments_finalized: bool,
156-
execution_public_memory: Option<Vec<usize>>,
156+
pub execution_public_memory: Option<Vec<usize>>,
157157
pub(crate) runner_mode: RunnerMode,
158158
pub relocated_memory: Vec<Option<Felt252>>,
159159
pub exec_scopes: ExecutionScopes,
@@ -408,7 +408,7 @@ impl CairoRunner {
408408
Ok(())
409409
}
410410

411-
fn is_proof_mode(&self) -> bool {
411+
pub fn is_proof_mode(&self) -> bool {
412412
self.runner_mode == RunnerMode::ProofModeCanonical
413413
|| self.runner_mode == RunnerMode::ProofModeCairo1
414414
}

0 commit comments

Comments
 (0)