Skip to content

Conversation

@vestor-dev
Copy link
Contributor

@vestor-dev vestor-dev commented Jan 28, 2026

Title

feat: enhance governance and escrow error handling, add TeachLinkError enum

Description

  • Improved error handling in governance contract by adding specific error messages for various conditions.
  • Introduced GovernanceError enum for better clarity on governance-related errors.
  • Updated escrow contract to utilize TeachLinkError for consistent error handling across the contract.
  • Added validation checks for parameters in both governance and escrow functions to prevent invalid states.
  • Refactored functions to return Result types instead of panicking, improving contract robustness.

Closes #53

…r enum

- Improved error handling in governance contract by adding specific error messages for various conditions.
- Introduced GovernanceError enum for better clarity on governance-related errors.
- Updated escrow contract to utilize TeachLinkError for consistent error handling across the contract.
- Added validation checks for parameters in both governance and escrow functions to prevent invalid states.
- Refactored functions to return Result types instead of panicking, improving contract robustness.
@vestor-dev
Copy link
Contributor Author

@ISTIFANUS-N kindly review :)

@vestor-dev
Copy link
Contributor Author

@ISTIFANUS-N any update on this
pls kindly give me compliment points 🤲

@ISTIFANUS-N
Copy link
Contributor

@vestor-dev please fix the CI, its failing.

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.

Implement error handling and validation

2 participants