Skip to content

refactor: replace auth event constant workarounds with direct imports#2404

Merged
PhilippGackstatter merged 3 commits into0xMiden:nextfrom
Farukest:fix/issue-2392-remove-const-workarounds
Feb 5, 2026
Merged

refactor: replace auth event constant workarounds with direct imports#2404
PhilippGackstatter merged 3 commits into0xMiden:nextfrom
Farukest:fix/issue-2392-remove-const-workarounds

Conversation

@Farukest
Copy link
Copy Markdown
Contributor

@Farukest Farukest commented Feb 5, 2026

Summary

Replace the temporary workaround constants introduced in PR #2377 with direct imports from miden::protocol::auth. The linker bug that required the workaround has been fixed in miden-vm#2637.

Changes

  • Replace const AUTH_REQUEST_EVENT = ::miden::protocol::auth::AUTH_REQUEST_EVENT with use miden::protocol::auth::AUTH_REQUEST_EVENT
  • Replace const AUTH_UNAUTHORIZED_EVENT = ::miden::protocol::auth::AUTH_UNAUTHORIZED_EVENT with use miden::protocol::auth::AUTH_UNAUTHORIZED_EVENT

Closes #2392

@Farukest Farukest force-pushed the fix/issue-2392-remove-const-workarounds branch from 2444ddb to a360602 Compare February 5, 2026 05:48
Replace the temporary workaround constants introduced in PR 0xMiden#2377 with
direct imports from `miden::protocol::auth`. The linker bug that required
the workaround has been fixed in miden-vm#2637.

Changes:
- Replace `const AUTH_REQUEST_EVENT = ::miden::protocol::auth::AUTH_REQUEST_EVENT`
  with `use miden::protocol::auth::AUTH_REQUEST_EVENT`
- Replace `const AUTH_UNAUTHORIZED_EVENT = ::miden::protocol::auth::AUTH_UNAUTHORIZED_EVENT`
  with `use miden::protocol::auth::AUTH_UNAUTHORIZED_EVENT`

Closes 0xMiden#2392
@Farukest Farukest force-pushed the fix/issue-2392-remove-const-workarounds branch from a360602 to f5c57f7 Compare February 5, 2026 06:41
@Farukest Farukest force-pushed the fix/issue-2392-remove-const-workarounds branch from f5c57f7 to d38823c Compare February 5, 2026 06:45
@Farukest
Copy link
Copy Markdown
Contributor Author

Farukest commented Feb 5, 2026

Hi @PhilippGackstatter kindly my PR needs review. please let me know if anything else we need here.

Copy link
Copy Markdown
Contributor

@PhilippGackstatter PhilippGackstatter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing this!

@PhilippGackstatter PhilippGackstatter merged commit 808348c into 0xMiden:next Feb 5, 2026
15 checks passed
afa7789 pushed a commit to afa7789/miden-base that referenced this pull request Mar 9, 2026
…0xMiden#2404)

* refactor: replace auth event constant workarounds with direct imports

Replace the temporary workaround constants introduced in PR 0xMiden#2377 with
direct imports from `miden::protocol::auth`. The linker bug that required
the workaround has been fixed in miden-vm#2637.

Changes:
- Replace `const AUTH_REQUEST_EVENT = ::miden::protocol::auth::AUTH_REQUEST_EVENT`
  with `use miden::protocol::auth::AUTH_REQUEST_EVENT`
- Replace `const AUTH_UNAUTHORIZED_EVENT = ::miden::protocol::auth::AUTH_UNAUTHORIZED_EVENT`
  with `use miden::protocol::auth::AUTH_UNAUTHORIZED_EVENT`

Closes 0xMiden#2392

* chore: update miden-assembly to v0.20.6 for constant import support

---------

Co-authored-by: Philipp Gackstatter <PhilippGackstatter@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace const re-declaration when bug is fixed

2 participants