From ddd17baf0999358a02717da5fd6810947fecb309 Mon Sep 17 00:00:00 2001 From: Santiago Carmuega Date: Sun, 25 Aug 2024 13:00:04 -0300 Subject: [PATCH] fix(applying): use correct cost model for Conway --- pallas-applying/src/utils/environment.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pallas-applying/src/utils/environment.rs b/pallas-applying/src/utils/environment.rs index b8c1a2b5..c9c9c5cd 100644 --- a/pallas-applying/src/utils/environment.rs +++ b/pallas-applying/src/utils/environment.rs @@ -5,6 +5,7 @@ use pallas_primitives::{ Coin, CostMdls, ExUnitPrices, ExUnits, Nonce, ProtocolVersion, RationalNumber, UnitInterval, }, babbage::CostMdls as BabbageCostMdls, + conway::CostMdls as ConwayCostMdls, }; #[allow(clippy::large_enum_variant)] @@ -155,7 +156,7 @@ pub struct ConwayProtParams { pub protocol_version: ProtocolVersion, pub min_pool_cost: Coin, pub ada_per_utxo_byte: Coin, - pub cost_models_for_script_languages: BabbageCostMdls, + pub cost_models_for_script_languages: ConwayCostMdls, pub execution_costs: ExUnitPrices, pub max_tx_ex_units: ExUnits, pub max_block_ex_units: ExUnits,