Skip to content

Commit

Permalink
cleanup Share for Annotator
Browse files Browse the repository at this point in the history
co-authored-by: Alexey Kuleshevich <[email protected]>
  • Loading branch information
goolord and lehins committed Jan 3, 2022
1 parent 0962998 commit 8b680a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
8 changes: 2 additions & 6 deletions eras/shelley/impl/src/Cardano/Ledger/Shelley/LedgerState.hs
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,6 @@ decodeEpochState ::
( FromCBOR (Core.PParams era),
TransValue FromCBOR era,
FromSharedCBOR (f (LedgerState era)),
-- Share (f (Core.TxOut era)) ~ Interns (Credential 'Staking (Crypto era)),
Share (f (LedgerState era)) ~ (Interns (Credential 'Staking (Crypto era)), Interns (KeyHash 'StakePool (Crypto era))),
Applicative f
) =>
Expand Down Expand Up @@ -705,8 +704,7 @@ instance
FromSharedCBOR (Annotator (UTxOState era))
where
type
Share (Annotator (UTxOState era)) =
Interns (Credential 'Staking (Crypto era))
Share (Annotator (UTxOState era)) = Share (UTxOState era)
fromSharedCBOR = decodeUTxOState

decodeUTxOState ::
Expand Down Expand Up @@ -872,9 +870,7 @@ instance
) =>
FromSharedCBOR (Annotator (LedgerState era))
where
type
Share (Annotator (LedgerState era)) =
(Interns (Credential 'Staking (Crypto era)), Interns (KeyHash 'StakePool (Crypto era)))
type Share (Annotator (LedgerState era)) = Share (LedgerState era)
fromSharedPlusCBOR = decodeLedgerState

decodeLedgerState ::
Expand Down
3 changes: 1 addition & 2 deletions eras/shelley/impl/src/Cardano/Ledger/Shelley/UTxO.hs
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ instance
FromSharedCBOR (Annotator (UTxO era))
where
type
Share (Annotator (UTxO era)) =
Interns (Credential 'Staking (Crypto era))
Share (Annotator (UTxO era)) = Share (UTxO era)
fromSharedCBOR credsInterns = do
!theMap <- decodeMap fromCBOR (fromSharedCBOR credsInterns)
pure $ UTxO <$!> (sequenceA theMap)
Expand Down

0 comments on commit 8b680a7

Please sign in to comment.