[BUG] - Cli prevents spending from script with inline datum at same utxo #3917
Labels
bug
Something isn't working
comp: cardano-cli
era: babbage
type: bug
Something is not working
user type: internal
Created by an IOG employee
Vasil
Internal/External
Internal if an IOHK staff member.
Area
Plutus Related to Plutus Scripts (Alonzo).
Summary
The cli enforces including datum with a spending script input. This combined with the limitation where inline datum cannot also exist in the witness set (see here) means it is not possible to consume/reference an output with inline datum to satisfy the spending script. Including datum for spending script should be optional.
Steps to reproduce
Steps to reproduce the behavior:
Actual result
When using
--tx-in-script-file
you must provide--tx-in-datum-*
. Doing so will result in the following ledger error:Expected behavior
It is possible to use
--tx-in-script-file
and omit--tx-in-datum-*
so that only the inline datum is used for script execution, or perhaps you need to also reference the same input (without needing to attach datum).System info (please complete the following information):
The text was updated successfully, but these errors were encountered: