Omnibus commited on
Commit
a1461fb
·
1 Parent(s): 28aa97f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -358,14 +358,14 @@ def issue_tokens(send,rec,amount):
358
  if p==True:
359
  try:
360
  #if lod["chain"][-1]["index"] > 1:
361
- balance = lod[-1]["balance"]
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[0]["balance"]
369
  #if lod["chain"][0]["index"] == 1:
370
  # balance = 0
371
  p=True
 
358
  if p==True:
359
  try:
360
  #if lod["chain"][-1]["index"] > 1:
361
+ balance = lod["chain"][-1]["balance"]
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