From 1d575d59531be3a5918dd59374de4419727b75ed Mon Sep 17 00:00:00 2001 From: Aztec Bot <49558828+AztecBot@users.noreply.github.com> Date: Thu, 12 Dec 2024 10:13:38 -0500 Subject: [PATCH] feat: Sync from noir (#10483) Automated pull of development from the [noir](https://github.com/noir-lang/noir) programming language, a dependency of Aztec. BEGIN_COMMIT_OVERRIDE feat: several `nargo test` improvements (https://github.com/noir-lang/noir/pull/6728) chore: Try replace callstack with a linked list (https://github.com/noir-lang/noir/pull/6747) chore: Use `NumericType` not `Type` for casts and numeric constants (https://github.com/noir-lang/noir/pull/6769) chore(ci): Extend compiler memory report to external repos (https://github.com/noir-lang/noir/pull/6768) chore(ci): Handle external libraries in compilation timing report (https://github.com/noir-lang/noir/pull/6750) feat(ssa): Implement missing brillig constraints SSA check (https://github.com/noir-lang/noir/pull/6658) fix: Do not merge expressions that contain output witnesses (https://github.com/noir-lang/noir/pull/6757) fix: parser would hand on function type with colon in it (https://github.com/noir-lang/noir/pull/6764) chore(docs): Update branding (https://github.com/noir-lang/noir/pull/6759) feat(cli): Run command on the package closest to the current directory (https://github.com/noir-lang/noir/pull/6752) chore: lock CI to use ubuntu 22.04 (https://github.com/noir-lang/noir/pull/6755) chore: free memory for silenced warnings early (https://github.com/noir-lang/noir/pull/6748) chore(stdlib)!: Remove Schnorr (https://github.com/noir-lang/noir/pull/6749) fix: Improve type error when indexing a variable of unknown type (https://github.com/noir-lang/noir/pull/6744) fix: println("{{}}") was printing "{{}}" instead of "{}" (https://github.com/noir-lang/noir/pull/6745) feat: `std::hint::black_box` function. (https://github.com/noir-lang/noir/pull/6529) feat(ci): Initial compilation report on test_programs (https://github.com/noir-lang/noir/pull/6731) chore: Cleanup unrolling pass (https://github.com/noir-lang/noir/pull/6743) fix: allow empty loop headers (https://github.com/noir-lang/noir/pull/6736) fix: map entry point indexes after all ssa passes (https://github.com/noir-lang/noir/pull/6740) chore: Update url to 2.5.4 (https://github.com/noir-lang/noir/pull/6741) feat: Order attribute execution by their source ordering (https://github.com/noir-lang/noir/pull/6326) feat(test): Check that `nargo::ops::transform_program` is idempotent (https://github.com/noir-lang/noir/pull/6694) feat: Sync from aztec-packages (https://github.com/noir-lang/noir/pull/6730) END_COMMIT_OVERRIDE --------- Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com> Co-authored-by: thunkar Co-authored-by: maramihali Co-authored-by: TomAFrench Co-authored-by: aakoshh --- aztec/src/macros/events/mod.nr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aztec/src/macros/events/mod.nr b/aztec/src/macros/events/mod.nr index 3a72031..1fc3671 100644 --- a/aztec/src/macros/events/mod.nr +++ b/aztec/src/macros/events/mod.nr @@ -1,5 +1,6 @@ use super::utils::compute_event_selector; use protocol_types::meta::flatten_to_fields; +use std::meta::typ::fresh_type_variable; comptime fn generate_event_interface(s: StructDefinition) -> Quoted { let name = s.name(); @@ -13,7 +14,6 @@ comptime fn generate_event_interface(s: StructDefinition) -> Quoted { impl aztec::event::event_interface::EventInterface<$content_len> for $name { fn to_be_bytes(self) -> [u8; $content_len * 32 + 32] { let mut buffer: [u8; $content_len * 32 + 32] = [0; $content_len * 32 + 32]; - let event_type_id_bytes: [u8; 32] = $name::get_event_type_id().to_field().to_be_bytes(); for i in 0..32 {