From 73f8c277b921d41d39b11fc8b072cc654ecf68a0 Mon Sep 17 00:00:00 2001 From: sihamon <126967444+sihamon@users.noreply.github.com> Date: Fri, 31 Mar 2023 23:42:51 +0200 Subject: [PATCH] Fix: TypeError in burn token (#152) * Fix: TypeError in burn token * Make format --- cashu/wallet/cli/cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cashu/wallet/cli/cli.py b/cashu/wallet/cli/cli.py index 907db59..e7af3c7 100644 --- a/cashu/wallet/cli/cli.py +++ b/cashu/wallet/cli/cli.py @@ -457,7 +457,9 @@ async def burn(ctx: Context, token: str, all: bool, force: bool, delete: str): proofs = [proof for proof in reserved_proofs if proof["send_id"] == delete] else: # check only the specified ones - proofs = [Proof(**p) for p in json.loads(base64.urlsafe_b64decode(token))] + proofs = [ + Proof(**p) for p in json.loads(base64.urlsafe_b64decode(token))["proofs"] + ] if delete: await wallet.invalidate(proofs, check_spendable=False)