Skip to content

fetchTransactionsFromHorizon hardcodes transaction amount to '0' #6

Description

@abayomicornelius

In src/lib/api.ts, the Horizon-fallback transaction mapper (fetchTransactionsFromHorizon) sets amount: '0' and assetCode: 'XLM' unconditionally for every transaction record instead of reading the real payment amount/asset from Horizon's _embedded.records.

Because the Horizon path only lists /transactions (not /payments) it doesn't even have per-operation amount data, so any user relying on the backend-unavailable fallback (documented in README's "Horizon fallback" section) sees a transaction history with all amounts showing as zero. Fix the endpoint used and/or the mapping to surface real amounts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    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