Omnibus commited on
Commit
8d402fa
·
1 Parent(s): 905d576

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
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
- if p==True:
398
-
399
- mes,val = valid_send()
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
- if val == False:
425
- mes = mes
426
- p = False
427
- print(mes)
 
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"