Skip to content

Commit

Permalink
Merge pull request #2577 from input-output-hk/lehins/add-intern-const…
Browse files Browse the repository at this point in the history
…raint

Add `Intern` constraint to `ShelleyBasedEra`
  • Loading branch information
nc6 authored Dec 7, 2021
2 parents 7155301 + b495c49 commit 0c941e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eras/shelley/impl/src/Cardano/Ledger/Shelley/API.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import Cardano.Ledger.Shelley.Constraints
UsesValue,
)
import Control.State.Transition (State)
import Data.Sharing (Interns, Share)

class
( PraosCrypto (Crypto era),
Expand All @@ -44,7 +45,8 @@ class
UsesTxOut era,
UsesPParams era,
ChainData (State (Core.EraRule "PPUP" era)),
SerialisableData (State (Core.EraRule "PPUP" era))
SerialisableData (State (Core.EraRule "PPUP" era)),
Share (Core.TxOut era) ~ Interns (Credential 'Staking (Crypto era))
) =>
ShelleyBasedEra era

Expand Down

0 comments on commit 0c941e2

Please sign in to comment.