Skip to content

Test gap: no coverage for queryXlmBalance() (src/soroban.ts) #460

Description

@Jaydbrown

queryXlmBalance() in src/soroban.ts — which simulates a balance() call against the native asset's Stellar Asset Contract to determine a user's XLM balance — has no dedicated test anywhere under src/tests/. It's exercised only indirectly (if at all) through StreamsModule.create()'s insufficient-balance path, which is itself the site of a separate concrete bug (see the estimateRequiredFee ~500 XLM overstatement issue). A direct unit test mocking the RPC simulateTransaction response would have caught issues in this path earlier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions