Skip to content

Commit 9e84d15

Browse files
committed
Update legacyComparison to accept "CertificateConway"
1 parent 7d69b15 commit 9e84d15

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

cardano-api/src/Cardano/Api/Certificate/Internal.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,8 +587,8 @@ filterUnRegDRepCreds sbe (Exp.Certificate cert) =
587587
ShelleyBasedEraBabbage -> Nothing
588588
ShelleyBasedEraConway ->
589589
conwayEraOnwardsConstraints ConwayEraOnwardsConway $
590-
fmap fst $
591-
Ledger.getUnRegDRepTxCert cert
590+
fst
591+
<$> Ledger.getUnRegDRepTxCert cert
592592

593593
-- ----------------------------------------------------------------------------
594594
-- Internal conversion functions

cardano-api/src/Cardano/Api/Experimental/Tx/Internal/Certificate.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ module Cardano.Api.Experimental.Tx.Internal.Certificate
1919
)
2020
where
2121

22-
import Cardano.Api.Certificate.Internal qualified as Api
23-
import Cardano.Api.Era.Internal.Eon.ConwayEraOnwards
2422
import Cardano.Api.Era.Internal.Eon.ShelleyBasedEra
25-
import Cardano.Api.Era.Internal.Eon.ShelleyToBabbageEra qualified as Api
2623
import Cardano.Api.Error
2724
import Cardano.Api.Experimental.Era
2825
import Cardano.Api.HasTypeProxy

cardano-api/src/Cardano/Api/Serialise/TextEnvelope/Internal.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ legacyComparison (TextEnvelopeType expectedType) (TextEnvelopeType actualType) =
185185
("Tx AlonzoEra", "Unwitnessed Tx AlonzoEra") -> True
186186
("Tx BabbageEra", "Unwitnessed Tx BabbageEra") -> True
187187
("Tx ConwayEra", "Unwitnessed Tx ConwayEra") -> True
188+
("Certificate", "CertificateConway") -> True
188189
(expectedOther, expectedActual) -> expectedOther == expectedActual
189190

190191
-- ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)