@lucid-evolution/utils 0.1.13 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1115,7 +1115,7 @@ var selectUTxOs = (utxos, totalAssets) => {
|
|
|
1115
1115
|
return selectedUtxos;
|
|
1116
1116
|
};
|
|
1117
1117
|
var sortUTxOs = (utxos, order = "descending") => {
|
|
1118
|
-
return utxos.
|
|
1118
|
+
return [...utxos].sort((a, b) => {
|
|
1119
1119
|
if (a.assets["lovelace"] > b.assets["lovelace"]) {
|
|
1120
1120
|
return order === "ascending" ? 1 : -1;
|
|
1121
1121
|
}
|
package/dist/index.js
CHANGED
|
@@ -1035,7 +1035,7 @@ var selectUTxOs = (utxos, totalAssets) => {
|
|
|
1035
1035
|
return selectedUtxos;
|
|
1036
1036
|
};
|
|
1037
1037
|
var sortUTxOs = (utxos, order = "descending") => {
|
|
1038
|
-
return utxos.
|
|
1038
|
+
return [...utxos].sort((a, b) => {
|
|
1039
1039
|
if (a.assets["lovelace"] > b.assets["lovelace"]) {
|
|
1040
1040
|
return order === "ascending" ? 1 : -1;
|
|
1041
1041
|
}
|