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.


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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