Skip to content

Commit

Permalink
chore: pass circuit to debug context by ref
Browse files Browse the repository at this point in the history
  • Loading branch information
mverzilli committed Oct 13, 2023
1 parent c61df1a commit 7d59bf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tooling/debugger/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct DebugContext<'backend, B: BlackBoxFunctionSolver> {
acvm: Option<ACVM<'backend, B>>,
debug_artifact: DebugArtifact,
foreign_call_executor: ForeignCallExecutor,
circuit: Circuit,
circuit: &'backend Circuit,
show_output: bool,
}

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

pub fn debug_circuit<B: BlackBoxFunctionSolver>(
blackbox_solver: &B,
circuit: Circuit,
circuit: &Circuit,
debug_artifact: DebugArtifact,
initial_witness: WitnessMap,
show_output: bool,
Expand Down
2 changes: 1 addition & 1 deletion tooling/nargo_cli/src/cli/debug_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ pub(crate) fn debug_program(

noir_debugger::debug_circuit(
&blackbox_solver,
compiled_program.circuit.clone(),
&compiled_program.circuit.clone(),
debug_artifact,
initial_witness,
true,
Expand Down

0 comments on commit 7d59bf5

Please sign in to comment.