Skip to content

contract(round): document and test all custom error codes #160

Description

@karagozemin

Summary

Ensure every custom error in the round contract is documented in contracts/round/ERRORS.md and has a test that triggers it, with a drift check keeping docs and code in sync.

Motivation

Downstream SDK error mapping (contractErrorCode) depends on stable, documented codes; undocumented codes cause opaque failures for integrators.

Acceptance criteria

  • ERRORS.md lists every error variant with meaning and trigger.
  • A test exercises each error path.
  • Drift check fails if a code exists in code but not docs (or vice versa).
  • Runs in CI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26area: contractSoroban smart contractcomplexity: mediumExpected medium implementation complexitydocumentationImprovements or additions to documentation

    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