Skip to content

Commit

Permalink
Minor clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 committed Nov 28, 2023
1 parent 1b715a7 commit 8e2a9d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cardano-api/internal/Cardano/Api/Eras.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module Cardano.Api.Eras

-- * Era case handling

-- ** Case on CardanoEra
-- ** Case on CardanoEra
, caseByronOrShelleyBasedEra

-- ** Case on ShelleyBasedEra
Expand Down
6 changes: 4 additions & 2 deletions cardano-api/internal/Cardano/Api/Eras/Case.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# LANGUAGE EmptyCase #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE LambdaCase #-}
Expand Down Expand Up @@ -44,7 +43,10 @@ caseByronOrShelleyBasedEra :: ()
-> CardanoEra era
-> a
caseByronOrShelleyBasedEra l r = \case
ByronEra -> l
ByronEra -> l -- We no longer provide the witness because Byron is isolated.
-- This function will be deleted shortly after build-raw --byron-era is
-- deprecated in cardano-cli

ShelleyEra -> r ShelleyBasedEraShelley
AllegraEra -> r ShelleyBasedEraAllegra
MaryEra -> r ShelleyBasedEraMary
Expand Down
4 changes: 1 addition & 3 deletions cardano-api/internal/Cardano/Api/InMode.hs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ data TxInMode where
-> Tx era
-> TxInMode

-- | Legacy Byron transactions. Byron has various things we can
-- | Legacy Byron transactions and things we can
-- post to the chain which are not actually transactions.
-- This covers: update proposals, votes and delegation certs.
--
Expand Down Expand Up @@ -105,8 +105,6 @@ fromConsensusGenTx = \case
in TxInMode ShelleyBasedEraConway (ShelleyTx ShelleyBasedEraConway shelleyEraTx)


-- mkByronTx = Consensus.ByronTx (Consensus.byronIdTx tx) tx

toConsensusGenTx :: ()
=> Consensus.CardanoBlock L.StandardCrypto ~ block
=> TxInMode
Expand Down

0 comments on commit 8e2a9d3

Please sign in to comment.