Description:
Expand bounty escrow tests to explicitly cover bounties created with zero deadline and with no deadline specified, validating how refund and eligibility logic behaves in each case.
Requirements and context:
- Deadline is optional, but behavior may differ for zero vs
None
- Need tests that:
- Create bounties with
deadline = 0, Some(ts), and None
- Verify refund rules for each case
- Component location:
contracts/bounty_escrow/contracts/escrow/src/lib.rs
- Bounty tests
Suggested execution:
-
Fork the repo and create a branch
git checkout -b test/zero-and-no-deadline-bounties
-
Implement changes
- Add focused tests for the three deadline configurations
- Confirm consistent and documented behavior
-
Test and commit
- Run bounty tests
- Document deadline semantics in PR
Example commit message:
test: add tests for zero-deadline and no-deadline bounties
Guidelines:
- Assignment required before starting
- PR description must include:
Closes #[issue_id]
Description:
Expand bounty escrow tests to explicitly cover bounties created with zero deadline and with no deadline specified, validating how refund and eligibility logic behaves in each case.
Requirements and context:
Nonedeadline = 0,Some(ts), andNonecontracts/bounty_escrow/contracts/escrow/src/lib.rsSuggested execution:
Fork the repo and create a branch
Implement changes
Test and commit
Example commit message:
Guidelines:
Closes #[issue_id]