Skip to content

feat: add get_organizer_address helper to EventRegistry contract#349

Merged
Yunusabdul38 merged 2 commits intoAgora-Events:mainfrom
Sundriveauto:feat/get-organizer-address
Mar 28, 2026
Merged

feat: add get_organizer_address helper to EventRegistry contract#349
Yunusabdul38 merged 2 commits intoAgora-Events:mainfrom
Sundriveauto:feat/get-organizer-address

Conversation

@Sundriveauto
Copy link
Copy Markdown
Contributor

@Sundriveauto Sundriveauto commented Mar 28, 2026

Closes #319


Summary

Centralizes organizer address lookup behind a dedicated public function on the EventRegistry contract.

Changes

event_registry/src/lib.rs

  • Added pub fn get_organizer_address(env, event_id) -> Result<Address, EventRegistryError>
    • Returns EventNotFound if the event does not exist
  • Refactored authorize_scanner to use the helper instead of fetching the full EventInfo

ticket_payment/src/contract.rs

  • Added get_organizer_address to the EventRegistryInterface trait for cross-contract use

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 28, 2026

@Sundriveauto is attempting to deploy a commit to the oseh-svg's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 28, 2026

@Sundriveauto Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Yunusabdul38 Yunusabdul38 merged commit b040a47 into Agora-Events:main Mar 28, 2026
3 of 4 checks passed
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.

[Contract] Add get_organizer_address helper

2 participants