Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -390,12 +390,7 @@ def issue_tokens(send,rec,amount):
|
|
| 390 |
p=False
|
| 391 |
mes = "Sender has no wallet"
|
| 392 |
pass
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
|
| 396 |
-
|
| 397 |
if p==True:
|
| 398 |
-
|
| 399 |
balance = lod[-1]["balance"]
|
| 400 |
print (balance)
|
| 401 |
balance =int(balance)-int(amount)
|
|
@@ -404,8 +399,9 @@ def issue_tokens(send,rec,amount):
|
|
| 404 |
'timestamp': str(datetime.datetime.now()),
|
| 405 |
'sender': f'{send}',
|
| 406 |
'recipient':f'{rec}',
|
| 407 |
-
'amount': f'{amount}'
|
| 408 |
'balance': f'{balance}'
|
|
|
|
| 409 |
lod.append(block)
|
| 410 |
|
| 411 |
json_object = json.dumps(lod, indent=4)
|
|
|
|
| 390 |
p=False
|
| 391 |
mes = "Sender has no wallet"
|
| 392 |
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
| 393 |
if p==True:
|
|
|
|
| 394 |
balance = lod[-1]["balance"]
|
| 395 |
print (balance)
|
| 396 |
balance =int(balance)-int(amount)
|
|
|
|
| 399 |
'timestamp': str(datetime.datetime.now()),
|
| 400 |
'sender': f'{send}',
|
| 401 |
'recipient':f'{rec}',
|
| 402 |
+
'amount': f'{amount}',
|
| 403 |
'balance': f'{balance}'
|
| 404 |
+
}
|
| 405 |
lod.append(block)
|
| 406 |
|
| 407 |
json_object = json.dumps(lod, indent=4)
|