From 6f97cc79804abf36f4b47713940b01a16ea90eaf Mon Sep 17 00:00:00 2001 From: kevaundray Date: Tue, 17 Oct 2023 11:09:34 +0100 Subject: [PATCH] chore: set `check_type` to false in lookup method (#3186) --- compiler/noirc_frontend/src/hir/aztec_library.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);