Skip to content

Commit 44c1c1e

Browse files
committed
Fix Alonzo genesis golden test
1 parent 434da06 commit 44c1c1e

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

eras/alonzo/test-suite/golden/mainnet-alonzo-genesis.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,4 +192,5 @@
192192
"cekLamCost-exBudgetMemory": 100,
193193
"sliceByteString-cpu-arguments-intercept": 150000
194194
},
195-
"PlutusV2": [197209, 0, 1, 1, 396231, 621, 0, 1, 150000, 1000, 0, 1, 150000, 32, 2477736, 29175, 4, 29773, 100, 29773, 100, 29773, 100, 29773, 100, 29773, 100, 29773, 100, 100, 100, 29773, 100, 150000, 32, 150000, 32, 150000, 32, 150000, 1000, 0, 1, 150000, 32, 150000, 1000, 0, 8, 148000, 425507, 118, 0, 1, 1, 150000, 1000, 0, 8, 150000, 112536, 247, 1, 150000, 10000, 1, 136542, 1326, 1, 1000, 150000, 1000, 1, 150000, 32, 150000, 32, 150000, 32, 1, 1, 150000, 1, 150000, 4, 103599, 248, 1, 103599, 248, 1, 145276, 1366, 1, 179690, 497, 1, 150000, 32, 150000, 32, 150000, 32, 150000, 32, 150000, 32, 150000, 32, 148000, 425507, 118, 0, 1, 1, 61516, 11218, 0, 1, 150000, 32, 148000, 425507, 118, 0, 1, 1, 148000, 425507, 118, 0, 1, 1, 2477736, 29175, 4, 0, 82363, 4, 150000, 5000, 0, 1, 150000, 32, 197209, 0, 1, 1, 150000, 32, 150000, 32, 150000, 32, 150000, 32, 150000, 32, 150000, 32, 150000, 32, 3345831, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] } }
195+
"PlutusV2": [197209, 0, 1, 1, 396231, 621, 0, 1, 150000, 1000, 0, 1, 150000, 32, 2477736, 29175, 4, 29773, 100, 29773, 100, 29773, 100, 29773, 100, 29773, 100, 29773, 100, 100, 100, 29773, 100, 150000, 32, 150000, 32, 150000, 32, 150000, 1000, 0, 1, 150000, 32, 150000, 1000, 0, 8, 148000, 425507, 118, 0, 1, 1, 150000, 1000, 0, 8, 150000, 112536, 247, 1, 150000, 10000, 1, 136542, 1326, 1, 1000, 150000, 1000, 1, 150000, 32, 150000, 32, 150000, 32, 1, 1, 150000, 1, 150000, 4, 103599, 248, 1, 103599, 248, 1, 145276, 1366, 1, 179690, 497, 1, 150000, 32, 150000, 32, 150000, 32, 150000, 32, 150000, 32, 150000, 32, 148000, 425507, 118, 0, 1, 1, 61516, 11218, 0, 1, 150000, 32, 148000, 425507, 118, 0, 1, 1, 148000, 425507, 118, 0, 1, 1, 2477736, 29175, 4, 0, 82363, 4, 150000, 5000, 0, 1, 150000, 32, 197209, 0, 1, 1, 150000, 32, 150000, 32, 150000, 32, 150000, 32, 150000, 32, 150000, 32, 150000, 32, 3345831, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] },
196+
"extraConfig": {} }

eras/alonzo/test-suite/test/Test/Cardano/Ledger/Alonzo/Golden.hs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -379,20 +379,14 @@ expectedGenesis =
379379
expectedCostModels :: CostModels
380380
expectedCostModels =
381381
mkCostModels
382-
(Map.fromList [(PlutusV1, expectedCostModel), (PlutusV2, expectedCostModelV2)])
382+
(Map.fromList [(PlutusV1, expectedCostModel)])
383383

384384
expectedCostModel :: CostModel
385385
expectedCostModel =
386386
fromRight
387387
(error ("Error creating CostModel from known parameters" <> show expectedPParams))
388388
(mkCostModel PlutusV1 expectedPParams)
389389

390-
expectedCostModelV2 :: CostModel
391-
expectedCostModelV2 =
392-
fromRight
393-
(error ("Error creating CostModel from known PlutusV2 parameters" <> show expectedPParams))
394-
(mkCostModel PlutusV2 (expectedPParams ++ (replicate 9 0)))
395-
396390
expectedPParams :: [Int64]
397391
expectedPParams =
398392
[ 197209

0 commit comments

Comments
 (0)