fix: pass privkey to cashuWallet.receive

This commit is contained in:
P. Reis 2025-02-07 23:49:57 -03:00
parent 361ef9a600
commit efceee505a

View file

@ -589,7 +589,7 @@ export const swapNutzapsToWalletController: AppController = async (c) => {
const token = getEncodedToken({ mint, proofs: mintsToProofs[mint].proofs });
const cashuWallet = new CashuWallet(new CashuMint(mint));
const receiveProofs = await cashuWallet.receive(token);
const receiveProofs = await cashuWallet.receive(token, { privkey });
const unspentProofs = await createEvent({
kind: 7375,