@cardano-sdk/cip2
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -56,2 +56,6 @@ "use strict"; | ||
} | ||
if (utxoSelected.length === 0) { | ||
utxoSelected.push(utxoRemaining[0]); | ||
utxoRemaining.splice(0, 1); | ||
} | ||
return { utxoRemaining, utxoSelected }; | ||
@@ -58,0 +62,0 @@ }; |
@@ -47,2 +47,5 @@ "use strict"; | ||
const assertIsBalanceSufficient = (uniqueOutputAssetIDs, utxoValues, outputValues, implicitCoin) => { | ||
if (utxoValues.length === 0) { | ||
throw new InputSelectionError_1.InputSelectionError(InputSelectionError_1.InputSelectionFailure.UtxoBalanceInsufficient); | ||
} | ||
for (const assetId of uniqueOutputAssetIDs) { | ||
@@ -49,0 +52,0 @@ const getAssetQuantity = exports.assetQuantitySelector(assetId); |
{ | ||
"name": "@cardano-sdk/cip2", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)", | ||
@@ -24,3 +24,3 @@ "engines": { | ||
"devDependencies": { | ||
"@cardano-sdk/util-dev": " 0.1.6", | ||
"@cardano-sdk/util-dev": " 0.1.7", | ||
"@types/lodash-es": "^4.17.5", | ||
@@ -32,3 +32,3 @@ "fast-check": "^2.17.0", | ||
"dependencies": { | ||
"@cardano-sdk/core": " 0.1.6", | ||
"@cardano-sdk/core": " 0.1.7", | ||
"lodash-es": "^4.17.21", | ||
@@ -35,0 +35,0 @@ "ts-custom-error": "^3.2.0" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
69680
574
+ Added@cardano-sdk/core@0.1.7(transitive)
- Removed@cardano-sdk/core@0.1.6(transitive)
Updated@cardano-sdk/core@ 0.1.7