Skip to content

Commit

Permalink
chore: Fix aztec branch (noir-lang#3185)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray authored and Sakapoi committed Oct 19, 2023
1 parent 692dca1 commit b08b6b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions compiler/noirc_frontend/src/hir/aztec_library.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,10 @@ fn collect_crate_structs(crate_id: &CrateId, context: &Context) -> Vec<StructId>

/// Substitutes the signature literal that was introduced in the selector method previously with the actual signature.
fn transform_event(struct_id: StructId, interner: &mut NodeInterner) {
let selector_id =
interner.lookup_method(struct_id, "selector").expect("Selector method not found");
let struct_type = interner.get_struct(struct_id);
let selector_id = interner
.lookup_method(&Type::Struct(struct_type, vec![]), struct_id, "selector", true)
.expect("Selector method not found");
let selector_function = interner.function(&selector_id);

let compute_selector_statement = interner.statement(
Expand Down

0 comments on commit b08b6b1

Please sign in to comment.