Skip to content

Refactor error handling in treasury contracts #30

Open
mahabubAlahi wants to merge 2 commits intooz-audit-fixesfrom
oz-fix-issue-46
Open

Refactor error handling in treasury contracts #30
mahabubAlahi wants to merge 2 commits intooz-audit-fixesfrom
oz-fix-issue-46

Conversation

@mahabubAlahi
Copy link
Collaborator

  • Introduced specific error messages for various invalid input scenarios in CampaignInfoFactory, AllOrNothing, KeepWhatsRaised, and BasePaymentTreasury contracts.
  • Enhanced clarity and granularity of error handling by replacing generic reverts with more descriptive custom errors, improving debugging and user feedback.

Update error handling in KeepWhatsRaised unit tests

  • Replaced generic revert messages with specific custom errors for invalid input scenarios in the KeepWhatsRaised contract tests, enhancing clarity and improving debugging capabilities.
  • Updated tests to reflect changes in error handling for launch time, first reward tier, and claim fund window conditions.

- Introduced specific error messages for various invalid input scenarios in CampaignInfoFactory, AllOrNothing, KeepWhatsRaised, and BasePaymentTreasury contracts.
- Enhanced clarity and granularity of error handling by replacing generic reverts with more descriptive custom errors, improving debugging and user feedback.
- Replaced generic revert messages with specific custom errors for invalid input scenarios in the KeepWhatsRaised contract tests, enhancing clarity and improving debugging capabilities.
- Updated tests to reflect changes in error handling for launch time, first reward tier, and claim fund window conditions.
@mahabubAlahi mahabubAlahi self-assigned this Mar 3, 2026
@mahabubAlahi mahabubAlahi added the enhancement New feature or request label Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant