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
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