mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
fix: add pubkey lock to proofs
This commit is contained in:
parent
99a20bd129
commit
33b8078fc6
1 changed files with 4 additions and 1 deletions
|
|
@ -388,7 +388,10 @@ route.post('/nutzap', userMiddleware({ enc: 'nip44' }), async (c) => {
|
|||
const wallet = new CashuWallet(mint);
|
||||
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({
|
||||
kind: 7375,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue