Skip to content

Commit 38ad0db

Browse files
committed
chore: pass circuit to debug context by ref
1 parent 281c696 commit 38ad0db

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tooling/debugger/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ struct DebugContext<'backend, B: BlackBoxFunctionSolver> {
2121
acvm: Option<ACVM<'backend, B>>,
2222
debug_artifact: DebugArtifact,
2323
foreign_call_executor: ForeignCallExecutor,
24-
circuit: Circuit,
24+
circuit: &'backend Circuit,
2525
show_output: bool,
2626
}
2727

@@ -115,7 +115,7 @@ fn map_command_status(result: SolveResult) -> CommandStatus {
115115

116116
pub fn debug_circuit<B: BlackBoxFunctionSolver>(
117117
blackbox_solver: &B,
118-
circuit: Circuit,
118+
circuit: &Circuit,
119119
debug_artifact: DebugArtifact,
120120
initial_witness: WitnessMap,
121121
show_output: bool,

tooling/nargo_cli/src/cli/debug_cmd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ pub(crate) fn debug_program(
120120

121121
noir_debugger::debug_circuit(
122122
&blackbox_solver,
123-
compiled_program.circuit.clone(),
123+
&compiled_program.circuit.clone(),
124124
debug_artifact,
125125
initial_witness,
126126
true,

0 commit comments

Comments
 (0)