Skip to content

Commit 44a52ba

Browse files
committed
Fix makeStakeAddressRegistrationCertificate
1 parent 6198fc3 commit 44a52ba

File tree

1 file changed

+4
-5
lines changed
  • cardano-api/src/Cardano/Api/Experimental/Tx/Internal/Certificate

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,11 @@ type family StakeRegistrationRequirements era where
9393
StakeRegistrationRequirements ShelleyEra = StakeCredential
9494

9595
makeStakeAddressRegistrationCertificate
96-
:: forall era
97-
. IsShelleyBasedEra era
98-
=> StakeRegistrationRequirements era
96+
:: ShelleyBasedEra era
97+
-> StakeRegistrationRequirements era
9998
-> Certificate (ShelleyLedgerEra era)
100-
makeStakeAddressRegistrationCertificate scred =
101-
case shelleyBasedEra @era of
99+
makeStakeAddressRegistrationCertificate sbe scred =
100+
case sbe of
102101
ShelleyBasedEraDijkstra ->
103102
createRegCertWithDeposit scred
104103
ShelleyBasedEraConway ->

0 commit comments

Comments
 (0)