-
Notifications
You must be signed in to change notification settings - Fork 24
Comprehensive contract error enum #41
Copy link
Copy link
Closed
Labels
GrantFox OSSIssue tracked in GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third CampaignCampaign: Third Campaign
Description
Activity
Metadata
Metadata
Assignees
Labels
GrantFox OSSIssue tracked in GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third CampaignCampaign: Third Campaign
User Story:
As a developer integrating with the contract, I want every failure mode mapped to a specific typed error so that callers can handle conditions programmatically instead of matching on panic strings.
Acceptance Criteria:
#[contracterror] Errorenum covering:AlreadyInitialized,NotInitialized,Unauthorized,CampaignEnded,CampaignNotActive,AssetNotAccepted,DonationTooSmall,MilestoneNotFound,MilestoneNotUnlocked,PreviousMilestoneNotReleased,CannotCancelWithFunds,RefundWindowClosed,InvalidGoalAmount,InvalidEndTime,InvalidMilestones,InsufficientContractBalance,Overflow,Reentrant,ContractFrozen