Skip to content

Contract Unit Tests — Collateral Escrow #31

Description

@OlufunbiIK

Complexity: Medium

Problem: The CollateralEscrow contract has no tests.

Scope: Write unit tests covering lock, release, repay, and partial repayment scenarios. Include test for early release attempt (should fail).

Acceptance criteria: All tests pass. Escrow state transitions are fully covered.

Files to create:
contracts/collateral-escrow/src/tests.rs
contracts/collateral-escrow/tests/integration_test.rs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions