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

Add FromSharedCBOR constraint to the EraTxOut #2950

Merged
merged 2 commits into from
Aug 8, 2022
Merged
Changes from 1 commit
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
6 changes: 5 additions & 1 deletion libs/cardano-ledger-core/src/Cardano/Ledger/Core.hs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ import Cardano.Ledger.BaseTypes (ProtVer)
import Cardano.Ledger.Coin (Coin)
import Cardano.Ledger.CompactAddress (CompactAddr, compactAddr, decompactAddr, isBootstrapCompactAddr)
import Cardano.Ledger.Compactible (Compactible (..))
import Cardano.Ledger.Credential
import qualified Cardano.Ledger.Crypto as CC
import Cardano.Ledger.Hashes
import Cardano.Ledger.Keys (KeyRole (Witness))
import Cardano.Ledger.Keys (KeyRole (Staking, Witness))
import Cardano.Ledger.Keys.Bootstrap (BootstrapWitness)
import Cardano.Ledger.Keys.WitVKey (WitVKey)
import Cardano.Ledger.SafeHash (HashAnnotated (..), SafeToHash (..))
Expand All @@ -85,6 +86,7 @@ import Data.Maybe (fromMaybe)
import Data.Maybe.Strict (StrictMaybe)
import Data.Sequence.Strict (StrictSeq)
import Data.Set (Set)
import Data.Sharing (FromSharedCBOR (Share), Interns)
import Data.Typeable (Typeable)
import Data.Void (Void, absurd)
import Data.Word (Word64)
Expand Down Expand Up @@ -177,6 +179,8 @@ class
FromCBOR (Value era),
ToCBOR (Value era),
FromCBOR (TxOut era),
FromSharedCBOR (TxOut era),
Share (TxOut era) ~ Interns (Credential 'Staking (Crypto era)),
ToCBOR (TxOut era),
NoThunks (TxOut era),
NFData (TxOut era),
Expand Down