Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -362,15 +362,9 @@ def issue_tokens(send,rec,amount):
|
|
| 362 |
#if lod["chain"][-1]["index"] == 1:
|
| 363 |
# balance = 0
|
| 364 |
except Exception:
|
|
|
|
|
|
|
| 365 |
p=False
|
| 366 |
-
try:
|
| 367 |
-
#if lod["chain"][0]["index"] > 1:
|
| 368 |
-
balance = lod["chain"][0]["balance"]
|
| 369 |
-
#if lod["chain"][0]["index"] == 1:
|
| 370 |
-
# balance = 0
|
| 371 |
-
p=True
|
| 372 |
-
except Exception:
|
| 373 |
-
p=False
|
| 374 |
print (balance)
|
| 375 |
|
| 376 |
balance_send =int(balance)-int(amount)
|
|
|
|
| 362 |
#if lod["chain"][-1]["index"] == 1:
|
| 363 |
# balance = 0
|
| 364 |
except Exception:
|
| 365 |
+
|
| 366 |
+
balance = 0
|
| 367 |
p=False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 368 |
print (balance)
|
| 369 |
|
| 370 |
balance_send =int(balance)-int(amount)
|