Skip to content

[Security] Comprehensive Custom Error Enums #151

@ayomideadeniran

Description

@ayomideadeniran

Description

Refactor all contracts to use highly descriptive error enums instead of simple strings or generic reverts.

Requirements

  • Define AuthError, StorageError, and LogicError enums.
  • Use panic_with_error! consistently.
  • Ensure all possible failure modes are mapped to unique codes.

Level

  • Intermediate

Rules for Contributors

  • Please add an ETA (no more than 2 days) when expressing interest.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions