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 25e89be commit f11476b
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions app/coinjoin/main_function.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ class CXJT {
this.locktime = locktime;
this.keyset = keyset;
};
class build_tx {
txid = t.txid;
utxo_in = t.utxo_in;
class Transaction {
constructor Transaction {
constructor(txid, utxo_in) {
this.txid = txid;
this.utxo_in = utxo_in;
Expand Down Expand Up @@ -135,9 +132,20 @@ class CXJT {
});
}
}
class mktx {
this.build_ins_from_template();
this.build_outs_from_template();
class Mktx {
constructor() {
this.build_ins_from_template();
this.build_outs_from_template();
}

build_ins_from_template() {
// implementation goes here
}

build_outs_from_template() {
// implementation goes here
}
}

if (!(this.ins.length && this.outs.length)) {
throw new Error("Invalid inputs or outputs");
Expand Down

0 comments on commit f11476b

Please sign in to comment.