Skip to content

[Contract] Refactor admin auth into helper function #320

@Yunusabdul38

Description

@Yunusabdul38

Description: Reduce boilerplate across administrative functions by refactoring the require_auth check for the admin address into a reusable private helper. Tasks:

Create a private helper function for admin authorization in lib.rs.
Refactor all admin-only functions to use this helper.
Ensure unit tests for authorization still pass.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions