Skip to content

Commit f8f4dae

Browse files
committed
Fix SP issues
1 parent 507f238 commit f8f4dae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/SP/send.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { UTXOType, UTXO} from "silent-payments";
1+
import { UTXOType, UTXO } from "silent-payments";
22

33
export const send = async (
44
utxos: UTXO[],
@@ -8,8 +8,8 @@ export const send = async (
88
changeAddress: string,
99
network: string
1010
) => {
11-
const utxosToSpend = utxos.filter((utxo) => utxo.value > amount + fee);
12-
const utxosToChange = utxos.filter((utxo) => utxo.value <= amount + fee);
11+
const utxosToSpend = utxos.filter((utxo) => utxo.vout> amount + fee);
12+
const utxosToChange = utxos.filter((utxo) => utxo.vout <= amount + fee);
1313

1414
const utxoType = "SPEND" as UTXOType;
1515

0 commit comments

Comments
 (0)