Skip to content

related_transactions in the SearchTransactionsResponse of Rosetta vs. MinaMesh #48

@piotr-iohk

Description

@piotr-iohk

When working on /search/transactions I've noticed that there is a difference in how empty related_transactions is presented in SearchTransactionsResponse in Rosetta vs. MinaMesh. In Rosetta empty related_transactions field is presented as:

"related_transactions": [],

In MinaMesh, in case of related_transactions: None the related_transactions is not serialized into the response at all.

RelatedTransaction is part of Transaction type, which is part of SearchTransactionsResponse. I suppose if we wanted to have the same behaviour we would need to serialize it to empty array when None via custom serialization behavior in https://github.com/harrysolovay/coinbase-mesh/blob/main/src/models/transaction.rs#L21.

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