Skip to content

Implement contract ownership check helper #175

@ayshadogo

Description

@ayshadogo

User Story:
As a developer, I want a reusable authorization helper so that creator-only functions are consistently protected.
Acceptance Criteria:

  • fn require_creator(env: &Env) helper function
  • Reads creator from storage
  • Calls creator.require_auth()
  • Panics with Error::Unauthorized if caller is not creator
  • Used in all creator-only functions

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions