IntersectMBO / plutus-apps

The Plutus application platform
Apache License 2.0
306 stars 214 forks source link

create-script-context - Custom redeemer no longer works for PlutusScriptV1 #1107

Open mkoura opened 1 year ago

mkoura commented 1 year ago

Summary

The create-script-context tool no longer works with custom redeemer for PlutusScriptV1.

Steps to reproduce the behavior

  1. Run
    create-script-context --generate-tx test_context_equivalence_tx.body --plutus-v1 --cardano-mode --testnet-magic 42 --out-file test_context_equivalence_context.redeemer

Actual Result

create-script-context: createAnyCustomRedeemer: PlutusScriptV1 custom redeemer not wired up yet
           CallStack (from HasCallStack):
             error, called at src/PlutusExample/ScriptContextChecker.hs:156:23 in plutus-example-1.2.0.0-7x7z4MX6XPr1x58Jz40FvO:PlutusExample.ScriptContextChecker

Expected Result

No errors and the redeemer is generated.

Describe the approach you would take to fix this

No response

System info

OS: Ferdora 37 Plutus apps: d37997b72b415e5197c7f870d368df134b6ad231

catch-21 commented 1 year ago

Looks like this has been the case for over a year now. @mkoura how important is this working for your tests?

mkoura commented 1 year ago

It was masked by other issues that were solved recently (like https://github.com/input-output-hk/plutus-apps/pull/1081). The script context E2E tests are broken for a very long time and I'd like to get the create-script-context usable again.