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

Commit

Permalink
Update main_function.js
Browse files Browse the repository at this point in the history
  • Loading branch information
22388o authored Jan 31, 2024
1 parent 263871a commit 5f7302e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/coinjoin/main_function.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ class CXJT {
const t = this.template.outs[i];

if (t.spk_type === "p2tr-p2tr") {
const address = btc.pubkey_to_p2tr_p2tr_address(
const address = btc.pubkey_to_p2tr_address(
this.keys["outs"][i][t.counterparty],
get_p2sh_vbyte()
);
this.outs.push({
"address": address,
"address": t.address,
"value": t.amount,
});
} else if (t.spk_type === "NN") {
Expand All @@ -92,14 +92,14 @@ class CXJT {
throw new Error("Incomplete key data to construct outputs");
}

const address = btc.pubkeys_to_p2wsh_address(
const address = btc.pubkeys_to_p2tr_address(
Object.values(this.keys["outs"][i]),
{ vbyte: 100 }
);

this.outs.push({
"address": address,
"value": t.amount
"address": t.address,
"value": t.amount,
});
}
}
Expand Down

0 comments on commit 5f7302e

Please sign in to comment.