I'm using CLB through integration in Atlas and during unit testing bumped into an issue when Datums can not be found by hash after transaction is submitted. mockDatums Map remains empty through the whole test run.
I've copy-pasted scriptDataFromCardanoTxBody to my project to see what is going on there, and seems like getting Datums only from (L.TxDats' dats) is not enough, as in my case it's an empty map. But I can see that Datums are present in transaction outputs as they suppose to. Probably, Datums can be extracted from outputs as well for proper indexing.
UPD: I'm submitting transactions with inline datums.
I'm using
CLB
through integration inAtlas
and during unit testing bumped into an issue when Datums can not be found by hash after transaction is submitted.mockDatums
Map remains empty through the whole test run.I've copy-pasted scriptDataFromCardanoTxBody to my project to see what is going on there, and seems like getting Datums only from
(L.TxDats' dats)
is not enough, as in my case it's an empty map. But I can see that Datums are present in transaction outputs as they suppose to. Probably, Datums can be extracted from outputs as well for proper indexing.UPD: I'm submitting transactions with inline datums.