With integration of CIP-69, the datum is optional for PlutusV3 spending scripts. However datum is still required for PlutusV1 and PlutusV2 spending scripts.
The transaction build command used to check datum, and failed to build a tx when datum was missing on the txin ("txin does not have a script datum") or when the provided datum was wrong ("The Plutus script witness has the wrong datum (according to the UTxO).").
Now the transaction build doesn't check the datum provided for PlutusV1 and PlutusV2 scripts.
Submitting the tx still fails as expected.
Steps to Reproduce
Try do build a Tx that contains a spending PlutusV1 or PlutusV2 script, while providing wrong datum, or no datum on the "locked" txin.
Observe that transaction build builds the transaction without reporting an error.
Description
With integration of CIP-69, the datum is optional for PlutusV3 spending scripts. However datum is still required for PlutusV1 and PlutusV2 spending scripts.
The
transaction build
command used to check datum, and failed to build a tx when datum was missing on the txin ("txin does not have a script datum") or when the provided datum was wrong ("The Plutus script witness has the wrong datum (according to the UTxO)."). Now thetransaction build
doesn't check the datum provided for PlutusV1 and PlutusV2 scripts.Submitting the tx still fails as expected.
Steps to Reproduce
transaction build
builds the transaction without reporting an error.Additional Context