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
I was thinking of adding additional checks in the cli to prevent/ask confirmation if a transaction is being sent to a script without a datum. I don't really see though how the check can be done purely on the CLI side without communicating with the node first to check the address the funds are being sent is a script.
Additional context / screenshots
The text was updated successfully, but these errors were encountered:
Or conversely. If datum is empty, or unit, because it might be a completely stateless script. Don't require on the redeeming transaction to supply an UTXO.
I've just run into this.
Does anyone know if/why its wrong/bad/suboptimal to have an empty datum for a UTXO at script address?
I just tried in vain to use the cli to retrieve one such utxo.
@waalge the way it currently works, whoever wants to spend a UTxO sitting at a script address must supply the datum (as well as the script). So if you send value without a datum, it is effectively burned because there is no datum anybody can supply that will validate. I think the OP is complaining that it is too easy to do this by accident on cli, with no obvious upside.
@Zagita21 so I've now gathered. I've yet to think of a reason why this would be desirable - to allow optional datums (fair) but that are then unspendable (huh?!).
Internal/External
External otherwise.
Area
Plutus Related to Plutus Scripts (Alonzo).
Describe the feature you'd like
It is currently possible to submit a transaction to a script without a datum
Once this is done, there is no way afterwards to retrieve the UTxO on sitting on the contract.
And we endup having UTxO piling up on this address:
Describe alternatives you've considered
I was thinking of adding additional checks in the cli to prevent/ask confirmation if a transaction is being sent to a script without a datum. I don't really see though how the check can be done purely on the CLI side without communicating with the node first to check the address the funds are being sent is a script.
Additional context / screenshots
The text was updated successfully, but these errors were encountered: