Skip to content

Commit

Permalink
Attempted fix: specify bounds for array function
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 committed Jun 8, 2022
1 parent 620705d commit 96fa588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cardano-api/src/Cardano/Api/Fees.hs
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ evaluateTransactionExecutionUnits _eraInMode systemstart history pparams utxo tx
-> Either TransactionValidityError (Array.Array Alonzo.Language Alonzo.CostModel)
toAlonzoCostModelsArray costmodels = do
Alonzo.CostModels cModels <- first (TransactionValidityCostModelError costmodels) $ toAlonzoCostModels costmodels
return $ Array.array (minBound, maxBound) (Map.toList cModels)
return $ Array.array (Alonzo.PlutusV1, Alonzo.PlutusV2) (Map.toList cModels)

fromLedgerScriptExUnitsMap
:: Map Alonzo.RdmrPtr (Either (Alonzo.ScriptFailure Ledger.StandardCrypto)
Expand Down

0 comments on commit 96fa588

Please sign in to comment.