Skip to content

Fix indexer substate lookup in wallet daemon indexer test #1976

@sdbondi

Description

@sdbondi

Bounty: Fix Indexer Substate Lookup in Wallet Daemon Test

Tier: S — 15,000 XTM

Description

The "Wallet daemon is able to connect to indexer" cucumber test fails with a 404 when querying the indexer for a substate version. The indexer hasn't synced the substate before the assertion runs. The steps prior to the failing assertion (template publish, counter invoke) all succeed, so the substate exists on-chain but the indexer hasn't indexed it in time. Add a wait/retry mechanism before the substate version check.

Acceptance Criteria

  • The the indexer INDEXER returns version 1 for substate COUNTER/components/Counter step passes
  • The "Wallet daemon is able to connect to indexer" scenario passes end-to-end
  • A wait/retry mechanism is added for indexer sync before the substate version check

Context

  • Issue opened by @sdbondi
  • Error: ErrorResponse { source: reqwest::Error { kind: Status(404) }, details: Some("Substate component_... not found") }
  • Affected step: integration_tests/tests/steps/indexer.rs:178
  • Affected scenario in tests/features/indexer.feature
  • The local_search_only=true query parameter may also be too restrictive

How to Claim

  1. Comment on this issue to signal intent (courtesy, not a lock)
  2. Fork the repo and do the work
  3. Submit a PR that meets the acceptance criteria
  4. First PR that passes review and gets merged wins the bounty
  5. On acceptance, XTM payment is processed

Notes

  • AI-assisted development is expected and encouraged
  • If you get stuck, ask in Discord
  • If you can't complete it within 14 days of claiming, let us know so someone else can pick it up

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions