Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!…
Browse files Browse the repository at this point in the history
… fixup! fixup! Add getTransactionBodyContent
  • Loading branch information
cblp committed May 6, 2021
1 parent f9729ca commit 37bb275
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions cardano-api/src/Cardano/Api/TxBody.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1232,8 +1232,6 @@ fromLedgerTxAuxiliaryData era (Just auxData) =
TxMetadataInEra TxMetadataInShelleyEra $ TxMetadata ms
, TxAuxScriptsNone
)
where
(ms, _) = fromLedgerAuxiliaryData era auxData
ShelleyBasedEraAllegra ->
( if null ms then
TxMetadataNone
Expand All @@ -1243,8 +1241,6 @@ fromLedgerTxAuxiliaryData era (Just auxData) =
[] -> TxAuxScriptsNone
_ -> TxAuxScripts AuxScriptsInAllegraEra ss
)
where
(ms, ss) = fromLedgerAuxiliaryData era auxData
ShelleyBasedEraMary ->
( if null ms then
TxMetadataNone
Expand All @@ -1254,8 +1250,8 @@ fromLedgerTxAuxiliaryData era (Just auxData) =
[] -> TxAuxScriptsNone
_ -> TxAuxScripts AuxScriptsInMaryEra ss
)
where
(ms, ss) = fromLedgerAuxiliaryData era auxData
where
(ms, ss) = fromLedgerAuxiliaryData era auxData


fromLedgerTxWithdrawals
Expand Down Expand Up @@ -1657,9 +1653,7 @@ toShelleySimpleScript :: SimpleScriptInEra era
toShelleySimpleScript (SimpleScriptInEra langInEra version script) =
toShelleyScript (ScriptInEra langInEra (SimpleScript version script))


toShelleyWithdrawal :: [(StakeAddress, Lovelace, a)]
-> Shelley.Wdrl StandardCrypto
toShelleyWithdrawal :: [(StakeAddress, Lovelace, a)] -> Shelley.Wdrl StandardCrypto
toShelleyWithdrawal withdrawals =
Shelley.Wdrl $
Map.fromList
Expand Down

0 comments on commit 37bb275

Please sign in to comment.