fix: add pubkey lock to proofs

This commit is contained in:
P. Reis 2025-02-25 13:58:57 -03:00
parent 99a20bd129
commit 33b8078fc6

View file

@ -388,7 +388,10 @@ route.post('/nutzap', userMiddleware({ enc: 'nip44' }), async (c) => {
const wallet = new CashuWallet(mint); const wallet = new CashuWallet(mint);
await wallet.loadMint(); await wallet.loadMint();
const { keep: proofsToKeep, send: proofsToSend } = await wallet.send(amount, proofsToBeUsed, { includeFees: true }); const { keep: proofsToKeep, send: proofsToSend } = await wallet.send(amount, proofsToBeUsed, {
includeFees: true,
pubkey: p2pk.length === 64 ? '02' + p2pk : p2pk,
});
const newUnspentProof = await createEvent({ const newUnspentProof = await createEvent({
kind: 7375, kind: 7375,