Skip to content

Commit 6921a0e

Browse files
committed
f
1 parent 86e5a81 commit 6921a0e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

eras/shelley/impl/src/Cardano/Ledger/Shelley/State/Account.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ instance NoThunks (ShelleyAccountState era)
5757
instance NFData (ShelleyAccountState era) where
5858
rnf = rwhnf
5959

60-
instance Typeable era => EncCBOR (ShelleyAccountState era) where
60+
instance EncCBOR (ShelleyAccountState era) where
6161
encCBOR sas@(ShelleyAccountState _ _ _ _) =
6262
let ShelleyAccountState {..} = sas
6363
in encodeListLen 4
@@ -105,7 +105,7 @@ instance NFData (ShelleyAccounts era) where
105105
rnf (ShelleyAccounts accounts accountPtr) =
106106
accounts `deepseq` rnf accountPtr
107107

108-
instance Typeable era => EncCBOR (ShelleyAccounts era) where
108+
instance EncCBOR (ShelleyAccounts era) where
109109
encCBOR ShelleyAccounts {saStates, saPtrs} =
110110
encodeListLen 2 <> encCBOR saStates <> encCBOR saPtrs
111111

libs/cardano-ledger-core/src/Cardano/Ledger/Plutus/Data.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ import qualified PlutusLedgerApi.V1 as PV1
8383
newtype PlutusData era = PlutusData PV1.Data
8484
deriving newtype (Eq, Generic, Show, NFData, NoThunks, Cborg.Serialise)
8585

86-
instance Typeable era => EncCBOR (PlutusData era) where
86+
instance EncCBOR (PlutusData era) where
8787
encCBOR (PlutusData d) = fromPlainEncoding $ Cborg.encode d
8888

8989
instance Typeable era => DecCBOR (PlutusData era) where
@@ -148,7 +148,7 @@ newtype BinaryData era = BinaryData ShortByteString
148148

149149
instance HashAnnotated (BinaryData era) EraIndependentData
150150

151-
instance Typeable era => EncCBOR (BinaryData era) where
151+
instance EncCBOR (BinaryData era) where
152152
encCBOR (BinaryData sbs) = encodeTag 24 <> encCBOR sbs
153153

154154
instance Era era => DecCBOR (BinaryData era) where

libs/cardano-ledger-core/src/Cardano/Ledger/State/Governance.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ deriving stock instance Show (PParams era) => Show (FuturePParams era)
145145

146146
deriving via AllowThunk (FuturePParams era) instance NoThunks (FuturePParams era)
147147

148-
instance (Typeable era, EncCBOR (PParams era)) => EncCBOR (FuturePParams era) where
148+
instance EncCBOR (PParams era) => EncCBOR (FuturePParams era) where
149149
encCBOR =
150150
encode . \case
151151
NoPParamsUpdate -> Sum NoPParamsUpdate 0

libs/cardano-ledger-test/src/Test/Cardano/Ledger/Constrained/Conway/WitnessUniverse.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ genWitBlock ::
585585
(Era era, Ord t, HasWitness t era) => Int -> Gen (ProofType t era) -> Gen (WitBlock t era)
586586
genWitBlock n g = blockFromProofList <$> vectorOf n g
587587

588-
instance (Era era, Typeable t) => EncCBOR (WitBlock t era) where
588+
instance Era era => EncCBOR (WitBlock t era) where
589589
encCBOR (WitBlock _ m) = encCBOR (Map.elems m)
590590

591591
genWitUniv ::

0 commit comments

Comments
 (0)