Skip to content

. Add unit test for cross-contract calls #272

Description

@DeFiVC

What: Add unit tests that verify cross-contract calls work correctly (learn-token -> progress-tracker).

Why: Cross-contract calls are complex. Tests must verify they work correctly and handle failures.

Scope: Create test that: mocks progress-tracker response, verifies learn-token uses correct score, tests failure cases (network error, invalid response).

Acceptance criteria:

  • Cross-contract calls work
  • Responses are parsed correctly
  • Failures are handled
  • No state corruption

Technical context: tests/unit/token_tests.rs — existing unit tests.


Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions