Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -204,10 +204,12 @@ class Blockchain:
|
|
204 |
|
205 |
|
206 |
def bc_transactions(sender,recipient,amount):
|
207 |
-
out =
|
208 |
-
if out ==
|
209 |
blockchain.new_transaction(f"{sender}",f"{recipient}",f"{amount}")
|
210 |
message = "Transaction Added to Pool"
|
|
|
|
|
211 |
return pd.DataFrame(blockchain.pending_transactions),message,None,None,None
|
212 |
|
213 |
def create_chain(create=None):
|
|
|
204 |
|
205 |
|
206 |
def bc_transactions(sender,recipient,amount):
|
207 |
+
mes, out = issue_tokens(sender,recipient,amount)
|
208 |
+
if out == True:
|
209 |
blockchain.new_transaction(f"{sender}",f"{recipient}",f"{amount}")
|
210 |
message = "Transaction Added to Pool"
|
211 |
+
if out == False:
|
212 |
+
message = mes
|
213 |
return pd.DataFrame(blockchain.pending_transactions),message,None,None,None
|
214 |
|
215 |
def create_chain(create=None):
|