Open
Description
Internal/External
Internal if an IOHK staff member.
Area
Plutus Related to Plutus Scripts (Alonzo).
Describe the feature you'd like
When submitting a transaction that executes a plutus script the ledger checks the script integrity hash on submit
. As a UX improvement, the build
cmd should check this too for quicker feedback of any mismatch.
Example of error currently seen on submit:
Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraBabbage (ApplyTxError [UtxowFailure (FromAlonzoUtxowFail (PPViewHashesDontMatch (SJust (SafeHash "8c82455574717fd0cdedb99facb1d8d4f3f673a681e63cf30922037986905610")) (SJust (SafeHash "a875a7169d0ff5953f058d67f0d57e6be64db0cf07891f764c1d6fb65a5f2507"))))])
A couple of ways to prompt this error: use the wrong script type (edit type in script file), or, change protocol params before building transaction.
Describe alternatives you've considered
hashScriptIntegrity
is already called but the result is not checked on build
.
Additional context / screenshots
cardano-cli tag 1.35.0-rc2