diff --git a/barretenberg/cpp/src/barretenberg/dsl/acir_format/acir_to_constraint_buf.cpp b/barretenberg/cpp/src/barretenberg/dsl/acir_format/acir_to_constraint_buf.cpp index 0b5fbf1dc138..af2c11282f0e 100644 --- a/barretenberg/cpp/src/barretenberg/dsl/acir_format/acir_to_constraint_buf.cpp +++ b/barretenberg/cpp/src/barretenberg/dsl/acir_format/acir_to_constraint_buf.cpp @@ -83,7 +83,7 @@ Acir::Program deserialize_program(std::vector const& buf) { return deserialize_any_format( buf, - [](auto o) -> Acir::Program { + [](auto o) { Acir::Program program; try { // Deserialize into a partial structure that ignores the Brillig parts, @@ -97,7 +97,12 @@ Acir::Program deserialize_program(std::vector const& buf) } return program; }, - &Acir::Program::bincodeDeserialize); + [](auto buf) { + auto program_wob = Acir::ProgramWithoutBrillig::bincodeDeserialize(buf); + Acir::Program program; + program.functions = program_wob.functions; + return program; + }); } /**