Skip to content

Commit

Permalink
fix wallet api restore
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Jul 11, 2024
1 parent 9f3f297 commit a3e4701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cashu/wallet/api/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit a3e4701

Please sign in to comment.