@harmoniclabs/cardanocli-pluts
Advanced tools
Comparing version 0.1.3-dev5 to 0.1.3-dev6
@@ -87,4 +87,10 @@ "use strict"; | ||
} | ||
if (key === "TxOutDatumHash") | ||
datum = new plu_ts_1.Hash32(values[i++]); | ||
if (key === "TxOutDatumHash") { | ||
var str = void 0; | ||
do { | ||
str = values[i++]; | ||
str = str.startsWith('"') ? str.slice(1, str.length - 1) : str; | ||
} while (!isHex(str)); | ||
datum = new plu_ts_1.Hash32(str); | ||
} | ||
if (key === "TxOutDatumNone") | ||
@@ -359,2 +365,6 @@ datum = undefined; | ||
} | ||
var hexChars = Object.freeze("abcdef0123456789".split('')); | ||
function isHex(str) { | ||
return str.split('').every(function (ch) { return hexChars.includes(ch); }); | ||
} | ||
//*/ |
{ | ||
"name": "@harmoniclabs/cardanocli-pluts", | ||
"version": "0.1.3-dev5", | ||
"version": "0.1.3-dev6", | ||
"description": "typescript wrapper on top of the cardano-cli tool", | ||
@@ -20,3 +20,3 @@ "main": "dist/index.js", | ||
"peerDependencies": { | ||
"@harmoniclabs/plu-ts": "^0.3.0-dev3" | ||
"@harmoniclabs/plu-ts": "^0.3.0-dev3 || ^0.3.0" | ||
}, | ||
@@ -23,0 +23,0 @@ "devDependencies": { |
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
166616
3262