We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 507f238 commit f8f4daeCopy full SHA for f8f4dae
src/app/SP/send.ts
@@ -1,4 +1,4 @@
1
-import { UTXOType, UTXO} from "silent-payments";
+import { UTXOType, UTXO } from "silent-payments";
2
3
export const send = async (
4
utxos: UTXO[],
@@ -8,8 +8,8 @@ export const send = async (
8
changeAddress: string,
9
network: string
10
) => {
11
- const utxosToSpend = utxos.filter((utxo) => utxo.value > amount + fee);
12
- const utxosToChange = utxos.filter((utxo) => utxo.value <= amount + fee);
+ const utxosToSpend = utxos.filter((utxo) => utxo.vout> amount + fee);
+ const utxosToChange = utxos.filter((utxo) => utxo.vout <= amount + fee);
13
14
const utxoType = "SPEND" as UTXOType;
15
0 commit comments