Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion barretenberg/cpp/src/barretenberg/api/api_ultra_honk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ void UltraHonkAPI::write_vk(const Flags& flags,
void UltraHonkAPI::gates([[maybe_unused]] const Flags& flags,
[[maybe_unused]] const std::filesystem::path& bytecode_path)
{
ASSERT("API function not implemented");
throw_or_abort("API function not implemented");
}

void UltraHonkAPI::write_contract(const Flags& flags,
Expand Down
6 changes: 3 additions & 3 deletions barretenberg/cpp/src/barretenberg/api/write_prover_output.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void write(const ProverOutput& prover_output,
write_bytes(ObjectToWrite::PROOF);
write_fields(ObjectToWrite::PROOF);
} else {
ASSERT("Invalid std::string for PROOF");
throw_or_abort("Invalid output_data_type for output_content proof");
}
} else if (output_content == "vk") {
if (output_data_type == "bytes") {
Expand All @@ -104,7 +104,7 @@ void write(const ProverOutput& prover_output,
write_bytes(ObjectToWrite::VK);
write_fields(ObjectToWrite::VK);
} else {
ASSERT("Invalid std::string for VK");
throw_or_abort("Invalid output_data_type for output_content vk");
}
} else if (output_content == "proof_and_vk") {
if (output_data_type == "bytes") {
Expand All @@ -122,7 +122,7 @@ void write(const ProverOutput& prover_output,
write_bytes(ObjectToWrite::VK);
write_fields(ObjectToWrite::VK);
} else {
throw_or_abort("Invalid std::string for PROOF_AND_VK");
throw_or_abort("Invalid output_data_type for output_content proof_and_vk");
}
} else {
throw_or_abort("Invalid std::string");
Expand Down