@harmoniclabs/plu-ts-offchain
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -361,4 +361,19 @@ "use strict"; | ||
var scriptsToExec = []; | ||
/** | ||
* needed in `getScriptDataHash` to understand whoich cost model to transform in language view | ||
*/ | ||
var _hasV1Scripts = false; | ||
/** | ||
* needed in `getScriptDataHash` to understand whoich cost model to transform in language view | ||
*/ | ||
var _hasV2Scripts = false; | ||
function pushScriptToExec(idx, tag, script, datum) { | ||
if (script.type !== cardano_ledger_ts_1.ScriptType.NativeScript) { | ||
// keep track of exsisting csript versions | ||
if (!_hasV1Scripts && script.type === "PlutusScriptV1") { | ||
_hasV1Scripts = true; | ||
} | ||
if (!_hasV2Scripts && script.type === "PlutusScriptV2") { | ||
_hasV2Scripts = true; | ||
} | ||
scriptsToExec.push({ | ||
@@ -576,4 +591,4 @@ index: idx, | ||
var languageViews = (0, cardano_costmodels_ts_1.costModelsToLanguageViewCbor)(this.protocolParamters.costModels, { | ||
mustHaveV1: plutusV1ScriptsWitnesses.length > 0, | ||
mustHaveV2: plutusV2ScriptsWitnesses.length > 0 | ||
mustHaveV1: _hasV1Scripts, | ||
mustHaveV2: _hasV2Scripts | ||
}).toBuffer(); | ||
@@ -580,0 +595,0 @@ invalidBefore = invalidBefore === undef ? undef : (0, ints_1.forceBigUInt)(invalidBefore); |
{ | ||
"name": "@harmoniclabs/plu-ts-offchain", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "An embedded DSL for Cardano smart contracts creation coupled with a library for Cardano transactions, all in Typescript", | ||
@@ -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
167394
3068