File tree Expand file tree Collapse file tree
cardano-api/src/Cardano/Api
Experimental/Tx/Internal/Certificate Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ project : cardano-api
2+ pr : 1175
3+ kind :
4+ - compatible
5+ description : |
6+ Add HasCallStack constraints to standalone functions that call error
7+ directly or indirectly, improving stack traces. Dijkstra-era placeholder
8+ error messages are also improved.
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ makeStakeAddressDelegationCertificate sCred delegatee =
7171 e@ ShelleyBasedEraMary -> cert e delegatee
7272 e@ ShelleyBasedEraAllegra -> cert e delegatee
7373 e@ ShelleyBasedEraShelley -> cert e delegatee
74- ShelleyBasedEraDijkstra -> error " TODO: makeStakeAddressDelegationCertificate DijkstraEra "
74+ ShelleyBasedEraDijkstra -> error " makeStakeAddressDelegationCertificate: Dijkstra era not supported "
7575 where
7676 cert
7777 :: Delegatee era ~ Api. Hash Api. StakePoolKey
Original file line number Diff line number Diff line change @@ -2662,7 +2662,7 @@ makeShelleyTransactionBody
26622662
26632663 txAuxData :: Maybe (L. TxAuxData E. ConwayEra )
26642664 txAuxData = toAuxiliaryData sbe txMetadata txAuxScripts
2665- makeShelleyTransactionBody ShelleyBasedEraDijkstra _ = error " makeShelleyTransactionBody: Dijkstra is not supported"
2665+ makeShelleyTransactionBody ShelleyBasedEraDijkstra _ = error " makeShelleyTransactionBody: Dijkstra era not supported"
26662666
26672667-- ----------------------------------------------------------------------------
26682668-- Script witnesses within the tx body
Original file line number Diff line number Diff line change @@ -355,7 +355,8 @@ fromMap = UTxO
355355--------------------------------------------------------------------}
356356
357357-- | Convert from a `cardano-api` `UTxO` to a `cardano-ledger` UTxO.
358- toShelleyUTxO :: HasCallStack => ShelleyBasedEra era -> UTxO era -> Ledger. UTxO (ShelleyLedgerEra era )
358+ toShelleyUTxO
359+ :: HasCallStack => ShelleyBasedEra era -> UTxO era -> Ledger. UTxO (ShelleyLedgerEra era )
359360toShelleyUTxO sbe =
360361 Ledger. UTxO . Map. foldMapWithKey f . unUTxO
361362 where
You can’t perform that action at this time.
0 commit comments