Skip to content

Commit

Permalink
Reorder some lines to fit the general scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
carlhammann committed Oct 18, 2023
1 parent 5119a4e commit 8b1da6e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cardano-api/internal/Cardano/Api/Script.hs
Original file line number Diff line number Diff line change
Expand Up @@ -642,21 +642,19 @@ eraOfScriptLanguageInEra :: ScriptLanguageInEra lang era
eraOfScriptLanguageInEra langInEra =
case langInEra of
SimpleScriptInShelley -> ShelleyBasedEraShelley

SimpleScriptInAllegra -> ShelleyBasedEraAllegra

SimpleScriptInMary -> ShelleyBasedEraMary

SimpleScriptInAlonzo -> ShelleyBasedEraAlonzo
PlutusScriptV1InAlonzo -> ShelleyBasedEraAlonzo

SimpleScriptInBabbage -> ShelleyBasedEraBabbage
SimpleScriptInConway -> ShelleyBasedEraConway

PlutusScriptV1InAlonzo -> ShelleyBasedEraAlonzo
PlutusScriptV1InBabbage -> ShelleyBasedEraBabbage
PlutusScriptV1InConway -> ShelleyBasedEraConway

PlutusScriptV2InBabbage -> ShelleyBasedEraBabbage
PlutusScriptV2InConway -> ShelleyBasedEraConway

PlutusScriptV3InConway -> ShelleyBasedEraConway

-- | Given a target era and a script in some language, check if the language is
Expand Down

0 comments on commit 8b1da6e

Please sign in to comment.