diff --git a/tooling/debugger/src/lib.rs b/tooling/debugger/src/lib.rs index ed9fe08ca97..6fde85e35f1 100644 --- a/tooling/debugger/src/lib.rs +++ b/tooling/debugger/src/lib.rs @@ -21,7 +21,7 @@ struct DebugContext<'backend, B: BlackBoxFunctionSolver> { acvm: Option>, debug_artifact: DebugArtifact, foreign_call_executor: ForeignCallExecutor, - circuit: Circuit, + circuit: &'backend Circuit, show_output: bool, } @@ -115,7 +115,7 @@ fn map_command_status(result: SolveResult) -> CommandStatus { pub fn debug_circuit( blackbox_solver: &B, - circuit: Circuit, + circuit: &Circuit, debug_artifact: DebugArtifact, initial_witness: WitnessMap, show_output: bool, diff --git a/tooling/nargo_cli/src/cli/debug_cmd.rs b/tooling/nargo_cli/src/cli/debug_cmd.rs index 5dcb2c7bdec..e9e5fd7f353 100644 --- a/tooling/nargo_cli/src/cli/debug_cmd.rs +++ b/tooling/nargo_cli/src/cli/debug_cmd.rs @@ -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,