Skip to content

Commit

Permalink
Fix mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
sj-fisher committed Jun 5, 2024
1 parent e59ae20 commit 58380f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cashu/wallet/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -1511,15 +1511,15 @@ def _select_proofs_to_send_pess(
return [proof]

# start with the proofs with the largest amount and add them until the target amount is reached
send_proofs = []
send_proofs: List[Proof] = []
while sum_proofs(send_proofs) < amount_to_send:
proof_to_add = sorted_proofs_of_current_keyset.pop()
send_proofs.append(proof_to_add)
return send_proofs

def _try_find_exact_proofs_subset(
self, proofs: List[Proof], amount_to_send: int
) -> List[Proof]:
) -> Optional[List[Proof]]:
"""
Returns a subset of proofs summing exactly to amount_to_send, or None if there is no such subset.
Expand Down

0 comments on commit 58380f0

Please sign in to comment.