diff --git a/cashu/wallet/wallet.py b/cashu/wallet/wallet.py index d33c41bf..d77d10f9 100644 --- a/cashu/wallet/wallet.py +++ b/cashu/wallet/wallet.py @@ -348,8 +348,9 @@ async def load_proofs(self, reload: bool = False, all_keysets=False) -> None: for keyset_id in self.keysets: proofs = await get_proofs(db=self.db, id=keyset_id, conn=conn) self.proofs.extend(proofs) - proofs_str = ' '.join([f"{k.id} ({k.unit})" for k in self.keysets.values()]) - logger.trace(f"Proofs loaded for keysets: {proofs_str}") + keysets_str = ' '.join([f"{k.id} ({k.unit})" for k in self.keysets.values()]) + logger.trace(f"Proofs loaded for keysets: {keysets_str}") + async def load_keysets_from_db( self, url: Union[str, None] = "", unit: Union[str, None] = ""