@mutants/cardano
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -95,3 +95,3 @@ "use strict"; | ||
if ((adaUtxos === null || adaUtxos === void 0 ? void 0 : adaUtxos.bestCase) || // In case we already found a single utxo for this transaction | ||
(ignoreUtxos === null || ignoreUtxos === void 0 ? void 0 : ignoreUtxos.some(function (ignoredUtxo) { return utxo.transaction.hash === ignoredUtxo; })) || | ||
(ignoreUtxos === null || ignoreUtxos === void 0 ? void 0 : ignoreUtxos.some(function (ignoredUtxo) { return "" + utxo.transaction.hash + utxo.transaction.index === ignoredUtxo; })) || | ||
getAvailableCoinFromUTXO(utxo) <= COLLATERAL_VALUE // TODO: confirm if this is really an issue - Some UTXOs with 5000000 total coin value keep throwing 'BadInputs' | ||
@@ -232,3 +232,4 @@ ) | ||
(totalCoin / tokens.length) % 1 === 0 && | ||
totalCoin / tokens.length > 2000000) { | ||
totalCoin / tokens.length > 50000000 // at least 50 ADA per utxo | ||
) { | ||
newOutputs = tokens.map(function (token) { | ||
@@ -235,0 +236,0 @@ var _a, _b; |
{ | ||
"name": "@mutants/cardano", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -93,3 +93,3 @@ import { TransactionOutput } from "../builders/transaction.builder"; | ||
ignoreUtxos?.some( | ||
(ignoredUtxo) => utxo.transaction.hash === ignoredUtxo | ||
(ignoredUtxo) => `${utxo.transaction.hash}${utxo.transaction.index}` === ignoredUtxo | ||
) || | ||
@@ -293,3 +293,3 @@ getAvailableCoinFromUTXO(utxo) <= COLLATERAL_VALUE // TODO: confirm if this is really an issue - Some UTXOs with 5000000 total coin value keep throwing 'BadInputs' | ||
(totalCoin / tokens.length) % 1 === 0 && | ||
totalCoin / tokens.length > 2000000 | ||
totalCoin / tokens.length > 50000000 // at least 50 ADA per utxo | ||
) { | ||
@@ -296,0 +296,0 @@ newOutputs = tokens.map((token) => { |
Sorry, the diff of this file is not supported yet
196356
4285