Skip to content

The failed transaction operations is empty in rosetta api #563

@zhanghuize-git

Description

@zhanghuize-git

Hello team, I am a cex dev, when I use rosetta-api, I find some issuse

When I use api to get transaction details
curl --location 'https://rosetta.oasis.io/api/mainnet/v1/block' \ --header 'content-type: application/json;' \ --data '{ "network_identifier": { "blockchain": "Oasis", "network": "bb3d748def55bdfb797a2ac53ee6ee141e54cd2ab2dc2375f4a0703a178e6e55" }, "block_identifier": { "index": 27765187 } }'

it response
{ "transaction_identifier": { "hash": "bbf683d62ae8f0278178a96d62e4d683fee4ea2bc908c313b59f3d4ed330f26e" }, "operations": [] },

the bbf683d62ae8f0278178a96d62e4d683fee4ea2bc908c313b59f3d4ed330f26e transaction is failed status

Image

when I check source code, I find this code has bug

Image

this is result by GetTransactionsWithResults api get

Image

please fix it, thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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