diff --git a/compiler/noirc_frontend/src/hir/aztec_library.rs b/compiler/noirc_frontend/src/hir/aztec_library.rs index 2b3fdc9b05e..6f988577839 100644 --- a/compiler/noirc_frontend/src/hir/aztec_library.rs +++ b/compiler/noirc_frontend/src/hir/aztec_library.rs @@ -344,7 +344,7 @@ fn collect_crate_structs(crate_id: &CrateId, context: &Context) -> Vec fn transform_event(struct_id: StructId, interner: &mut NodeInterner) { let struct_type = interner.get_struct(struct_id); let selector_id = interner - .lookup_method(&Type::Struct(struct_type, vec![]), struct_id, "selector", true) + .lookup_method(&Type::Struct(struct_type, vec![]), struct_id, "selector", false) .expect("Selector method not found"); let selector_function = interner.function(&selector_id);