Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -587,9 +587,13 @@ with gr.Blocks() as bc:
|
|
| 587 |
|
| 588 |
def res_bc():
|
| 589 |
blockchain.reset(create="chain1.json")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 590 |
|
| 591 |
-
|
| 592 |
-
reset_blockchain.click(res_bc,None,
|
| 593 |
reset_source.click(res_source,None,block_text)
|
| 594 |
|
| 595 |
send_trans.click(issue_tokens,[send,rec,am],[block_text,out_box_bool,json_out_send,json_out_rec,chain_json_send,chain_json_rec,trans_data_send,trans_data_rec,block_text_send,block_text_rec,send,rec,trans_data])
|
|
|
|
| 587 |
|
| 588 |
def res_bc():
|
| 589 |
blockchain.reset(create="chain1.json")
|
| 590 |
+
return ("Main Blockchain Reset")
|
| 591 |
+
def res_send(send):
|
| 592 |
+
mychain_send = MyChainSend(chain_load=main_balance,create=send)
|
| 593 |
+
return ("Sender Blockchain Reset")
|
| 594 |
|
| 595 |
+
reset_sender.click(res_send,send,block_text)
|
| 596 |
+
reset_blockchain.click(res_bc,None,block_text)
|
| 597 |
reset_source.click(res_source,None,block_text)
|
| 598 |
|
| 599 |
send_trans.click(issue_tokens,[send,rec,am],[block_text,out_box_bool,json_out_send,json_out_rec,chain_json_send,chain_json_rec,trans_data_send,trans_data_rec,block_text_send,block_text_rec,send,rec,trans_data])
|