Skip to content

Commit 75633d3

Browse files
authored
Merge pull request #775 from IntersectMBO/mgalazyn/fix/compatible-tx-build-fix-missing-certs-in-eras-shelley-to-alonzo
Add missing certificates in compatible transaction building in eras after Shelley and prior to Alonzo
2 parents 7d13491 + fe9ca2b commit 75633d3

File tree

1 file changed

+3
-4
lines changed
  • cardano-api/src/Cardano/Api/Internal/Compatible

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,9 @@ createCompatibleTx sbe ins outs txFee' anyProtocolUpdate anyVote txCertificates'
134134

135135
setCerts :: Endo (L.TxBody (ShelleyLedgerEra era))
136136
setCerts =
137-
monoidForEraInEon era $ \aeo ->
138-
alonzoEraOnwardsConstraints aeo $
139-
Endo $
140-
L.certsTxBodyL .~ convCertificates sbe txCertificates'
137+
shelleyBasedEraConstraints sbe $
138+
Endo $
139+
L.certsTxBodyL .~ convCertificates sbe txCertificates'
141140

142141
setRefInputs :: Endo (L.TxBody (ShelleyLedgerEra era))
143142
setRefInputs = do

0 commit comments

Comments
 (0)