mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-20 18:44:20 +01:00
Fix: TypeError in burn token (#152)
* Fix: TypeError in burn token * Make format
This commit is contained in:
@@ -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]
|
proofs = [proof for proof in reserved_proofs if proof["send_id"] == delete]
|
||||||
else:
|
else:
|
||||||
# check only the specified ones
|
# 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:
|
if delete:
|
||||||
await wallet.invalidate(proofs, check_spendable=False)
|
await wallet.invalidate(proofs, check_spendable=False)
|
||||||
|
|||||||
Reference in New Issue
Block a user