Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
Fix CJ
Browse files Browse the repository at this point in the history
  • Loading branch information
223880 committed Mar 21, 2024
1 parent fce7745 commit 25e89be
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions app/coinjoin/main_function.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,24 @@ class CXJT {
this.keyset = keyset;
};
class build_tx {
for (let i = 0; i < this.template.ins.length; i++) {
const t = this.template.ins[i];
let txid, utxo_in;
txid = t.txid;
utxo_in = t.utxo_in;
class Transaction {
constructor(txid, utxo_in) {
this.txid = txid;
this.utxo_in = utxo_in;
}
}

function createTransaction(t) {
let utxo_in = t.utxo_in;
let transaction = new Transaction(t.txid, utxo_in);
// Add the transaction to the list of transactions
// Assuming you have a 'transactions' array
transactions.push(transaction);
}

}

if (t.txid) {
txid = t.txid;
Expand Down

0 comments on commit 25e89be

Please sign in to comment.