Skip to content

Add Tests for Error Message Clarity and Mapping #401

@Jagadeeshftw

Description

@Jagadeeshftw

Description:

Add tests (and small tooling) to ensure that important error codes from contracts map to clear, user-facing error messages in the backend and SDK, reducing ambiguity for integrators.

Requirements and context:

  • Errors are surfaced in multiple layers (contract, backend, SDK)
  • Need tests that:
    • Trigger representative errors on-chain
    • Verify backend/SDK mapping to human-readable messages
  • Component locations:
    • Contract error enums and tests
    • Backend or SDK error mapping code

Suggested execution:

  1. Fork the repo and create a branch

    git checkout -b test/error-message-clarity-mapping
  2. Implement changes

    • Add mapping tables and tests for them
    • Ensure no important contract error is unmapped
  3. Test and commit

    • Run backend/SDK tests
    • Include mapping table or reference in PR

Example commit message:

test: add tests for error message clarity and mapping

Guidelines:

  • Assignment required before starting
  • PR description must include: Closes #[issue_id]

Metadata

Metadata

Assignees

No one assigned

    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