Skip to content

Commit

Permalink
set proof only reserved if it properly serialized
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Sep 23, 2023
1 parent a89c230 commit b251c24
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cashu/wallet/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,15 +213,14 @@ async def send(
"No proof with this amount found. Available amounts:"
f" {set([p.amount for p in wallet.proofs])}"
)
await wallet.set_reserved(send_proofs, reserved=True)

token = await wallet.serialize_proofs(
send_proofs,
include_mints=True,
include_dleq=include_dleq,
)
print(token)

await wallet.set_reserved(send_proofs, reserved=True)
if legacy:
print("")
print("Old token format:")
Expand Down

0 comments on commit b251c24

Please sign in to comment.