@harmoniclabs/blockfrost-pluts
Advanced tools
Comparing version 0.1.8 to 0.1.9
"use strict"; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var __values = (this && this.__values) || function(o) { | ||
@@ -103,2 +92,3 @@ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; | ||
var rdmrs = ((_b = tx.witnesses.redeemers) !== null && _b !== void 0 ? _b : []).slice(); | ||
var result = new Array(rdmrs.length); | ||
var _loop_1 = function (tag, index, exunits) { | ||
@@ -109,3 +99,8 @@ var idx = rdmrs.findIndex(function (rdmr) { return rdmr.tag === tag && rdmr.index === index; }); | ||
var rdmr = rdmrs[idx]; | ||
rdmrs[idx] = new cardano_ledger_ts_1.TxRedeemer(__assign(__assign({}, rdmr), { execUnits: new plutus_machine_1.ExBudget(exunits) })); | ||
result[idx] = new cardano_ledger_ts_1.TxRedeemer({ | ||
tag: rdmr.tag, | ||
index: rdmr.index, | ||
data: rdmr.data.clone(), | ||
execUnits: new plutus_machine_1.ExBudget(exunits) | ||
}); | ||
}; | ||
@@ -125,3 +120,7 @@ try { | ||
} | ||
return rdmrs; | ||
for (var i = 0; i < result.length; i++) { | ||
if (result[i] === undefined) | ||
result[i] = rdmrs[i].clone(); | ||
} | ||
return result; | ||
} | ||
@@ -128,0 +127,0 @@ function getRealTxRedeemers(tx, response) { |
{ | ||
"name": "@harmoniclabs/blockfrost-pluts", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "@blockfrost/blockfrost-js extension based on plu-ts types", | ||
@@ -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
61470
1075