Skip to content

[Contract] Add get_organizer_address helper #319

@Yunusabdul38

Description

@Yunusabdul38

Description: Centralize the logic for retrieving an organizer's address from an event ID. This helper simplifies cross-contract communication and internal lookups. Tasks:

Implement get_organizer_address(env: Env, event_id: String) -> Result<Address, EventRegistryError>.
Ensure it returns EventNotFound if the ID doesn't exist.
Update existing manual lookups to use this helper.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions