From 31d383259dae7139dc511be6d9c674809d1900cb Mon Sep 17 00:00:00 2001 From: Egge Date: Wed, 13 Nov 2024 12:10:20 +0000 Subject: [PATCH] use stripDleq everywhere --- src/CashuWallet.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/CashuWallet.ts b/src/CashuWallet.ts index e436e336..54bcb0cd 100644 --- a/src/CashuWallet.ts +++ b/src/CashuWallet.ts @@ -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, @@ -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 = {