@harmoniclabs/plutus-machine
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -57,7 +57,9 @@ "use strict"; | ||
var isV3 = (0, cardano_costmodels_ts_1.isCostModelsV3)(costmodel); | ||
if (!(isV1 || isV2 || isV3)) | ||
if (!(isV3 || isV2 || isV1)) | ||
throw new Error("invalid machine costs"); | ||
var costs = isV1 ? (0, cardano_costmodels_ts_1.costModelV1ToFakeV3)(costmodel) : | ||
// ALWAYS CHECK LATEST VERSION FIRST | ||
var costs = isV3 ? (0, cardano_costmodels_ts_1.toCostModelV3)(costmodel) : | ||
isV2 ? (0, cardano_costmodels_ts_1.costModelV2ToFakeV3)(costmodel) : | ||
(0, cardano_costmodels_ts_1.toCostModelV3)(costmodel); | ||
isV1 ? (0, cardano_costmodels_ts_1.costModelV1ToFakeV3)(costmodel) : | ||
cardano_costmodels_ts_1.defaultV3Costs; // never; we throw before | ||
(0, obj_utils_1.defineReadOnlyHiddenProperty)(this, "getBuiltinCostFuction", (0, BuiltinCosts_1.costModelV3ToBuiltinCosts)(costs)); | ||
@@ -64,0 +66,0 @@ (0, obj_utils_1.defineReadOnlyHiddenProperty)(this, "machineCosts", (0, MachineCosts_1.costModelToMachineCosts)(costs)); |
{ | ||
"name": "@harmoniclabs/plutus-machine", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
227050
4390