Skip to content

Commit

Permalink
use stripDleq everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
Egge21M committed Nov 13, 2024
1 parent af68d57 commit 31d3832
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/CashuWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -767,10 +767,9 @@ class CashuWallet {
options.privkey
).map((p: NUT11Proof) => serializeProof(p));
}
// Strip DLEQs if any
proofsToSend = proofsToSend.map((p: Proof) => {
return { ...p, dleq: undefined };
});

proofsToSend = stripDleq(proofsToSend);

const meltPayload: MeltPayload = {
quote: meltQuote.quote,
inputs: proofsToSend,
Expand Down Expand Up @@ -846,10 +845,7 @@ class CashuWallet {
).map((p: NUT11Proof) => serializeProof(p));
}

// Strip DLEQs if any
proofsToSend = proofsToSend.map((p: Proof) => {
return { ...p, dleq: undefined };
});
proofsToSend = stripDleq(proofsToSend);

// join keepBlindedMessages and sendBlindedMessages
const blindingData: BlindingData = {
Expand Down

0 comments on commit 31d3832

Please sign in to comment.