diff --git a/src/circuit_builder.rs b/src/circuit_builder.rs index 7ce4adb3..d9ff162e 100644 --- a/src/circuit_builder.rs +++ b/src/circuit_builder.rs @@ -310,16 +310,16 @@ impl, const D: usize> CircuitBuilder { input: w, }), }); - self.add_generator(CopyGenerator { - src: Target::Wire(Wire { + self.generate_copy( + Target::Wire(Wire { gate: gate_1, input: w, }), - dst: Target::Wire(Wire { + Target::Wire(Wire { gate: gate_2, input: w, }), - }); + ); } }