Skip to content

Commit

Permalink
Add Redeemer to V3 ScriptContext Pretty instance (#6191)
Browse files Browse the repository at this point in the history
  • Loading branch information
ana-pantilie authored Jun 8, 2024
1 parent be0aa25 commit 37e681c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Fixed

- Fixed the `Pretty` instance for `ScriptContext` to display the redemeer as well.
1 change: 1 addition & 0 deletions plutus-ledger-api/src/PlutusLedgerApi/V3/Contexts.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 37e681c

Please sign in to comment.