From 72e783c081b3fe80ad027c4b6bfa1019a0e34794 Mon Sep 17 00:00:00 2001 From: Tom French Date: Thu, 30 May 2024 16:50:13 +0100 Subject: [PATCH] chore: default to using bn254 in `noirc_frontend` --- compiler/noirc_frontend/src/hir/def_collector/dc_mod.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/compiler/noirc_frontend/src/hir/def_collector/dc_mod.rs b/compiler/noirc_frontend/src/hir/def_collector/dc_mod.rs index 5f1ef6477af..5c196324b7d 100644 --- a/compiler/noirc_frontend/src/hir/def_collector/dc_mod.rs +++ b/compiler/noirc_frontend/src/hir/def_collector/dc_mod.rs @@ -741,12 +741,10 @@ fn should_check_siblings_for_module(module_path: &Path, parent_path: &Path) -> b } cfg_if::cfg_if! { - if #[cfg(feature = "bn254")] { - pub const CHOSEN_FIELD: &str = "bn254"; - } else if #[cfg(feature = "bls12_381")] { + if #[cfg(feature = "bls12_381")] { pub const CHOSEN_FIELD: &str = "bls12_381"; } else { - compile_error!("please specify a field to compile with"); + pub const CHOSEN_FIELD: &str = "bn254"; } }