From efceee505ac2ee80fbe76d32417beecb924a280e Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Fri, 7 Feb 2025 23:49:57 -0300 Subject: [PATCH] fix: pass privkey to cashuWallet.receive --- src/controllers/api/ditto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/api/ditto.ts b/src/controllers/api/ditto.ts index fca34645..f014adc4 100644 --- a/src/controllers/api/ditto.ts +++ b/src/controllers/api/ditto.ts @@ -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,