Skip to content

Commit

Permalink
Merge pull request #323 from input-output-hk/ch/support-plutus-v1-in-…
Browse files Browse the repository at this point in the history
…conway

Support Plutus V1 in Conway
  • Loading branch information
carlhammann authored Oct 23, 2023
2 parents 2e299c1 + 8b1da6e commit d11b423
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cardano-api/internal/Cardano/Api/Script.hs
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,9 @@ scriptLanguageSupportedInEra era lang =
(BabbageEra, PlutusScriptLanguage PlutusScriptV2) ->
Just PlutusScriptV2InBabbage

(ConwayEra, PlutusScriptLanguage PlutusScriptV1) ->
Just PlutusScriptV1InConway

(ConwayEra, PlutusScriptLanguage PlutusScriptV2) ->
Just PlutusScriptV2InConway

Expand Down Expand Up @@ -639,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 d11b423

Please sign in to comment.