mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-20 10:34: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]
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user