Fix: TypeError in burn token (#152)

* Fix: TypeError in burn token

* Make format
This commit is contained in:
sihamon
2023-03-31 23:42:51 +02:00
committed by GitHub
parent ce08e083fb
commit 73f8c277b9

View File

@@ -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)