Skip to content

Commit

Permalink
Remove unneccesary import of Cardano.Ledger.Shelley.Scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 committed Oct 30, 2022
1 parent 6dc90e1 commit d724518
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
4 changes: 1 addition & 3 deletions cardano-cli/src/Cardano/CLI/Shelley/Run/Read.hs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ import Cardano.Api.Shelley
--TODO: do this nicely via the API too:
import qualified Cardano.Binary as CBOR
import Data.Text (Text)
--TODO: following import needed for orphan Eq Script instance
import Cardano.Ledger.Shelley.Scripts ()

import Cardano.CLI.Shelley.Key
import Cardano.CLI.Shelley.Parsers
Expand Down Expand Up @@ -169,7 +167,7 @@ renderScriptWitnessError (ScriptWitnessErrorFile err) =
Text.pack $ displayError err
renderScriptWitnessError (ScriptWitnessErrorScriptLanguageNotSupportedInEra (AnyScriptLanguage lang) anyEra) =
"The script language " <> Text.pack (show lang) <> " is not supported in the " <>
renderEra anyEra <> " era'."
renderEra anyEra <> " era."
renderScriptWitnessError (ScriptWitnessErrorExpectedSimple file (AnyScriptLanguage lang)) =
Text.pack $ file <> ": expected a script in the simple script language, " <>
"but it is actually using " <> show lang <> ". Alternatively, to use " <>
Expand Down
3 changes: 0 additions & 3 deletions cardano-cli/src/Cardano/CLI/Shelley/Run/Transaction.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ import Cardano.Api
import Cardano.Api.Byron hiding (SomeByronSigningKey (..))
import Cardano.Api.Shelley

--TODO: following import needed for orphan Eq Script instance
import Cardano.Ledger.Shelley.Scripts ()

import Cardano.CLI.Run.Friendly (friendlyTxBS, friendlyTxBodyBS)
import Cardano.CLI.Shelley.Output
import Cardano.CLI.Shelley.Parsers
Expand Down
3 changes: 1 addition & 2 deletions cardano-cli/src/Cardano/CLI/Shelley/Run/Validate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,12 @@ import Prelude

import Cardano.Api
import Cardano.Api.Shelley
--TODO: following import needed for orphan Eq Script instance
import Cardano.Ledger.Shelley.Scripts ()

import Data.Bifunctor (first)
import qualified Data.Map as Map
import Data.Maybe
import qualified Data.Text as Text

data ScriptLanguageValidationError
= ScriptLanguageValidationError AnyScriptLanguage AnyCardanoEra
deriving Show
Expand Down

0 comments on commit d724518

Please sign in to comment.