Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -394,10 +394,9 @@ def issue_tokens(send,rec,amount):
|
|
| 394 |
p=False
|
| 395 |
mes = f"Sender has no wallet {e}"
|
| 396 |
pass
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
if val == True:
|
| 401 |
try:
|
| 402 |
balance = lod["chain"][-1]["balance"]
|
| 403 |
except Exception:
|
|
@@ -421,10 +420,11 @@ def issue_tokens(send,rec,amount):
|
|
| 421 |
if balance_send < 0:
|
| 422 |
mes ="Not enough tokens"
|
| 423 |
p = False
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
|
|
|
| 428 |
|
| 429 |
if z==False:
|
| 430 |
mes = "Invalid Blockchain"
|
|
|
|
| 394 |
p=False
|
| 395 |
mes = f"Sender has no wallet {e}"
|
| 396 |
pass
|
| 397 |
+
mes1,val = valid_send()
|
| 398 |
+
if val == True:
|
| 399 |
+
if p==True:
|
|
|
|
| 400 |
try:
|
| 401 |
balance = lod["chain"][-1]["balance"]
|
| 402 |
except Exception:
|
|
|
|
| 420 |
if balance_send < 0:
|
| 421 |
mes ="Not enough tokens"
|
| 422 |
p = False
|
| 423 |
+
if val == False:
|
| 424 |
+
p = False
|
| 425 |
+
mes=mes1
|
| 426 |
+
pass
|
| 427 |
+
print(mes)
|
| 428 |
|
| 429 |
if z==False:
|
| 430 |
mes = "Invalid Blockchain"
|