Skip to content

Commit

Permalink
chore: set check_type to false in lookup method (noir-lang#3186)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray authored and Sakapoi committed Oct 19, 2023
1 parent dfc47d8 commit 9dccaf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/noirc_frontend/src/hir/aztec_library.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ fn collect_crate_structs(crate_id: &CrateId, context: &Context) -> Vec<StructId>
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);

Expand Down

0 comments on commit 9dccaf8

Please sign in to comment.