Skip to content

Commit

Permalink
Fix cost models in alonzoGenesisDefaults
Browse files Browse the repository at this point in the history
`mkCostModelsLenient` is now monadic.
See: IntersectMBO/cardano-ledger@e173cf2
  • Loading branch information
Lucsanszky committed May 13, 2024
1 parent 70d1d1f commit fc592b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions cardano-api/cardano-api.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ library internal
, directory
, either
, errors
, FailT
, filepath
, formatting
, groups
Expand Down
3 changes: 2 additions & 1 deletion cardano-api/internal/Cardano/Api/Genesis.hs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import Cardano.Ledger.Shelley.Genesis (NominalDiffTimeMicro, ShelleyGe
import qualified Cardano.Ledger.Shelley.Genesis as Ledger
import qualified Ouroboros.Consensus.Shelley.Eras as Shelley

import Control.Monad.Trans.Fail.String (errorFail)
import Data.ByteString (ByteString)
import qualified Data.Default.Class as DefaultClass
import Data.Functor.Identity (Identity)
Expand Down Expand Up @@ -208,7 +209,7 @@ alonzoGenesisDefaults = AlonzoGenesis { agPrices = Prices { prSteps = 721 %! 100
, agMaxBlockExUnits = ExUnits { exUnitsMem = 62000000
, exUnitsSteps = 20000000000
}
, agCostModels = apiCostModels
, agCostModels = errorFail apiCostModels
, agCollateralPercentage = 150
, agCoinsPerUTxOWord = CoinPerWord $ Coin 34482
}
Expand Down

0 comments on commit fc592b7

Please sign in to comment.