From a3e4701ca0dc735dc0d7de6105fb01c56bd4f0e9 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Thu, 11 Jul 2024 19:30:26 +0200 Subject: [PATCH] fix wallet api restore --- cashu/wallet/api/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cashu/wallet/api/router.py b/cashu/wallet/api/router.py index f5c771f6..05ec5a62 100644 --- a/cashu/wallet/api/router.py +++ b/cashu/wallet/api/router.py @@ -433,7 +433,7 @@ async def restore( if to < 0: raise Exception("Counter must be positive") await wallet.load_mint() - await wallet.restore_promises_from_to(0, to) + await wallet.restore_promises_from_to(wallet.keyset_id, 0, to) await wallet.invalidate(wallet.proofs, check_spendable=True) return RestoreResponse(balance=wallet.available_balance)