From 5952e21fe2a0d4bc4e78ea41ffff1eb40ff3fdb9 Mon Sep 17 00:00:00 2001 From: Syed Ghufran Hassan Date: Thu, 9 Jul 2026 14:29:18 +0500 Subject: [PATCH] feat(events): add WinnerNotFound error for claim_prize validation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add Error::WinnerNotFound to handle cases where a recipient tries to claim a prize but has no unpaid winner record in the event. This supports the new pull‑claim payout model. This is interlinked with https://github.com/boundlessfi/boundless-contract/issues/61 --- contracts/events/src/errors.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contracts/events/src/errors.rs b/contracts/events/src/errors.rs index ca38b93..2e85a35 100644 --- a/contracts/events/src/errors.rs +++ b/contracts/events/src/errors.rs @@ -54,7 +54,8 @@ pub enum Error { InvalidMilestone = 55, InsufficientEscrow = 56, WinnersAlreadySelected = 90, - + WinnerNotFound = 91, + // Contributions BelowMinimumContribution = 57, InvalidContributionAmount = 58,