Skip to content

[FR] - improve the formatting of the additional information that is provided when Plutus scripts fail  #3126

Open
@dorin100

Description

@dorin100

Internal/External
Internal if an IOHK staff member.

Area
Plutus Related to Plutus Scripts (Alonzo).

Describe the feature you'd like
The format of the below errors could be improved.

$ cardano-cli transaction submit --testnet-magic 42 --tx-file test_always_fails_step2_tx.signed --cardano-mode

Command failed: transaction submit  Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (UtxosFailure (ValidationTagMismatch (IsValid True) (FailedUnexpectedly [PlutusFailure "\nThe 3 arg plutus script (PlutusScript ScriptHash \"c0c671fba483641a71bb92d3a8b7c52c90bf1c01e2b83116ad7d4536\") fails.\nCekError An error has occurred:  User error:\nThe provided Plutus code called 'error'.\nThe data is: Constr 0 [I 42]\nThe redeemer is: Constr 0 [I 42]\nThe context is:\nPurpose: Spending (TxOutRef {txOutRefId = e6c325b31b00c76da46b48b72e26ec148005b2c19dcaee71fc70539351d75bd7, txOutRefIdx = 0})\nTxInfo:\n  TxId: 7bc185d16c0eaa6b5ef50a7c7f0d22b55e55254bccdba62b47b90711566155d1\n  Inputs: [ e6c325b31b00c76da46b48b72e26ec148005b2c19dcaee71fc70539351d75bd7!0 -> - Value (Map [(,Map [(\"\",770000000)])]) addressed to\n                                                                                    addressed to ScriptCredential: c0c671fba483641a71bb92d3a8b7c52c90bf1c01e2b83116ad7d4536 (no staking credential) ]\n  Outputs: [ - Value (Map [(,Map [(\"\",50000000)])]) addressed to\n               addressed to PubKeyCredential: e20b29d0742befe50117cb6a55c3ed056dd1d7fa8641a569bb3f0bda (no staking credential) ]\n  Fee: Value (Map [(,Map [(\"\",720000000)])])\n  Value minted: Value (Map [])\n  DCerts: []\n  Wdrl: []\n  Valid range: (-\8734 , +\8734)\n  Signatories: []\n  Datums: [ ( fcaa61fb85676101d9e3398a484674e71c45c3fd41b492682f3b0054f4cf3273\n          , <42> ) ]\n" "hZ8aAA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U9M8yc9h5nxgq////2HmfWCB7wYXRbA6qa171Cnx/DSK1XlUlS8zbpitHuQcRVmFV0f//2Hqf2Hmf2HmfWCDmwyWzGwDHbaRrSLcuJuwUgAWywZ3K7nH8cFOTUddb1/8A/////wA="])))))])

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