You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
piotr-iohk
changed the title
related_operations in the SearchTransactionsResponse of Rosetta vs. MinaMeshrelated_transactions in the SearchTransactionsResponse of Rosetta vs. MinaMesh
Oct 8, 2024
When working on
/search/transactions
I've noticed that there is a difference in how emptyrelated_transactions
is presented inSearchTransactionsResponse
in Rosetta vs. MinaMesh. In Rosetta emptyrelated_transactions
field is presented as:In MinaMesh, in case of
related_transactions: None
therelated_transactions
is not serialized into the response at all.RelatedTransaction
is part ofTransaction
type, which is part ofSearchTransactionsResponse
. I suppose if we wanted to have the same behaviour we would need to serialize it to empty array whenNone
via custom serialization behavior in https://github.com/harrysolovay/coinbase-mesh/blob/main/src/models/transaction.rs#L21.The text was updated successfully, but these errors were encountered: