@harmoniclabs/plu-ts-offchain
Advanced tools
Comparing version 0.1.12-dev0 to 0.1.12-dev1
@@ -373,2 +373,8 @@ "use strict"; | ||
} | ||
function pushUniqueScript(arr, toPush) { | ||
if (!arr.some(function (script) { | ||
return script.hash.toString() === toPush.hash.toString(); | ||
})) | ||
arr.push(toPush); | ||
} | ||
/** | ||
@@ -463,7 +469,7 @@ * extracts the important data from the input | ||
if (t === "NativeScript") | ||
nativeScriptsWitnesses.push(script); | ||
pushUniqueScript(nativeScriptsWitnesses, script); | ||
else if (t === "PlutusScriptV1") | ||
plutusV1ScriptsWitnesses.push(script); | ||
pushUniqueScript(plutusV1ScriptsWitnesses, script); | ||
else if (t === "PlutusScriptV2") | ||
plutusV2ScriptsWitnesses.push(script); | ||
pushUniqueScript(plutusV2ScriptsWitnesses, script); | ||
} | ||
@@ -470,0 +476,0 @@ /** |
{ | ||
"name": "@harmoniclabs/plu-ts-offchain", | ||
"version": "0.1.12-dev0", | ||
"version": "0.1.12-dev1", | ||
"description": "An embedded DSL for Cardano smart contracts creation coupled with a library for Cardano transactions, all in Typescript", | ||
@@ -22,3 +22,3 @@ "main": "./dist/index.js", | ||
"buidl": "npm run build", | ||
"ci": "npm run test && npm run build", | ||
"ci": "npm i && npm run test && npm run build", | ||
"start": "npm-run-all --parallel build:watch run:watch" | ||
@@ -25,0 +25,0 @@ }, |
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
176323
3260