Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the valContext comment #2597

Merged
merged 1 commit into from
Jan 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions eras/alonzo/impl/src/Cardano/Ledger/Alonzo/TxInfo.hs
Original file line number Diff line number Diff line change
Expand Up @@ -398,13 +398,8 @@ txInfo pp lang ei sysS utxo tx = do
datpairs = Map.toList (unTxDats $ txdats' _witnesses)
rdmrs = Map.toList (unRedeemers $ txrdmrs' _witnesses)

-- ===============================================================
-- From the specification, Figure 7 "Script Validation, cont."
-- ===============================================================

-- | valContext collects info from the Tx and the UTxO an
-- translates it into a 'Data', which the Plutus language knows how to interpret.
-- The UTxO and the PtrMap are used to 'resolve' the TxIn and the StakeRefPtr's
-- | valContext pairs transaction data with a script purpose.
-- See figure 22 of the Alonzo specification.
valContext ::
VersionedTxInfo ->
ScriptPurpose (Crypto era) ->
Expand Down