Skip to content

[FR] - build cmd to check script hash integrity #4029

Open
@catch-21

Description

@catch-21

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions