Skip to content

Add Tests for Zero-Deadline and No-Deadline Bounties #398

@Jagadeeshftw

Description

@Jagadeeshftw

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:

  1. Fork the repo and create a branch

    git checkout -b test/zero-and-no-deadline-bounties
  2. Implement changes

    • Add focused tests for the three deadline configurations
    • Confirm consistent and documented behavior
  3. 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]

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions