From 37e681c299db2163011cddeaefce00131462dfe6 Mon Sep 17 00:00:00 2001 From: Ana Pantilie <45069775+ana-pantilie@users.noreply.github.com> Date: Sun, 9 Jun 2024 01:44:30 +0200 Subject: [PATCH] Add Redeemer to V3 ScriptContext Pretty instance (#6191) --- .../20240607_213432_ana.pantilie95_fix_scriptcontext_pretty.md | 3 +++ plutus-ledger-api/src/PlutusLedgerApi/V3/Contexts.hs | 1 + 2 files changed, 4 insertions(+) create mode 100644 plutus-ledger-api/changelog.d/20240607_213432_ana.pantilie95_fix_scriptcontext_pretty.md diff --git a/plutus-ledger-api/changelog.d/20240607_213432_ana.pantilie95_fix_scriptcontext_pretty.md b/plutus-ledger-api/changelog.d/20240607_213432_ana.pantilie95_fix_scriptcontext_pretty.md new file mode 100644 index 00000000000..4e0b6186feb --- /dev/null +++ b/plutus-ledger-api/changelog.d/20240607_213432_ana.pantilie95_fix_scriptcontext_pretty.md @@ -0,0 +1,3 @@ +### Fixed + +- Fixed the `Pretty` instance for `ScriptContext` to display the redemeer as well. diff --git a/plutus-ledger-api/src/PlutusLedgerApi/V3/Contexts.hs b/plutus-ledger-api/src/PlutusLedgerApi/V3/Contexts.hs index ef33d3796cf..3d26a2f05dd 100644 --- a/plutus-ledger-api/src/PlutusLedgerApi/V3/Contexts.hs +++ b/plutus-ledger-api/src/PlutusLedgerApi/V3/Contexts.hs @@ -532,6 +532,7 @@ instance Pretty ScriptContext where vsep [ "ScriptInfo:" <+> pretty scriptContextScriptInfo , nest 2 (vsep ["TxInfo:", pretty scriptContextTxInfo]) + , nest 2 (vsep ["Redeemer:", pretty scriptContextRedeemer]) ] instance PlutusTx.Eq ScriptContext where