mustPayToOtherScriptWithDatumInTx when used with mustSpendScriptOutput does not attach datum to the tx
smunx opened this issue · comments
smunx commented
Summary
When using the mustPayToOtherScriptWithDatumInTx, mustIncludeDatumInTx and mustSpendScriptOutput in the offchain code it dose not attach the datum to the transaction.
The txOutDatum is yielding only the datumHash when doing a check inside the getContinuingOutputs.
Steps to reproduce the behavior
Create a offchain tx with mustPayToOtherScriptWithDatumInTx, mustIncludeDatumInTx and mustSpendScriptOutput
The script output is spent and also to certain amount is paid back to the same script.
Actual Result
onchain only gets the datumhash and not the datum itself.
Expected Result
onchain should should the datum not just the datumhash.
Describe the approach you would take to fix this
No response
System info
OS: Ubuntu
Version: 20.04
Plutus-apps commit: feb321a