Skip to content

Commit

Permalink
Merge pull request #1004 from IntersectMBO/smelc/remove-orphan-instance
Browse files Browse the repository at this point in the history
Remove orphan instance
  • Loading branch information
smelc authored Jan 7, 2025
2 parents 6822436 + ff15908 commit 29b13af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion cardano-cli/src/Cardano/CLI/EraBased/Run/Transaction.hs
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ runTransactionBuildEstimateCmd -- TODO change type
, txBodyOutFile
} = do
let sbe = convert currentEra
meo = convert currentEra
meo = convert (convert currentEra :: BabbageEraOnwards era)

ledgerPParams <-
firstExceptT TxCmdProtocolParamsError $ readProtocolParameters sbe protocolParamsFile
Expand Down
7 changes: 0 additions & 7 deletions cardano-cli/src/Cardano/CLI/Orphans.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ module Cardano.CLI.Orphans
where

import Cardano.Api
import qualified Cardano.Api.Experimental as Exp
import qualified Cardano.Api.Ledger as L
import Cardano.Api.Shelley (scriptDataToJsonDetailedSchema)

Expand All @@ -33,9 +32,3 @@ instance ToJSON HashableScriptData where
[ "hash" .= hashScriptDataBytes hsd
, "json" .= scriptDataToJsonDetailedSchema hsd
]

-- TODO Delete me when added in API
instance Convert Exp.Era MaryEraOnwards where
convert = \case
Exp.BabbageEra -> MaryEraOnwardsBabbage
Exp.ConwayEra -> MaryEraOnwardsConway

0 comments on commit 29b13af

Please sign in to comment.