Skip to content

chore: backport #21024 (compile-time size check for events and error code links) to v4#21056

Closed
AztecBot wants to merge 1 commit intov4from
claudebox/fc248802fe819834-1
Closed

chore: backport #21024 (compile-time size check for events and error code links) to v4#21056
AztecBot wants to merge 1 commit intov4from
claudebox/fc248802fe819834-1

Conversation

@AztecBot
Copy link
Copy Markdown
Collaborator

@AztecBot AztecBot commented Mar 3, 2026

Backport of #21024 to v4.

Changes

  • Adds compile-time size check for events via static_assert in the #[event] macro
  • Adds error code URLs (errors/4 and errors/5) to both note and event static_assert messages
  • Adds netlify redirects for error codes 1-5 (v4 had none previously)
  • Adds invalid_event compile failure test

Conflict Resolution

The only conflict was in docs/netlify.toml — v4 had only the example comment template for error codes, while next already had error codes 1-3. Resolved by taking the incoming side with all error codes 1-5.

ClaudeBox log: http://ci.aztec-labs.com/fc248802fe819834-1

…1024)

This adds the static assert for packing length that we had in #[note] to
future we may have information as to how to proceed (e.g. what to do
with too-long events etc).

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: benesjan <janbenes1234@gmail.com>
@AztecBot AztecBot added the claudebox Owned by claudebox. it can push to this PR. label Mar 3, 2026
@AztecBot AztecBot closed this Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants