Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -119,7 +119,6 @@ def upload_to_blockchain(ipfs_hash):
|
|
| 119 |
print("Transaction successful!")
|
| 120 |
print("ETH Tx Hash:", tx_receipt.transactionHash.hex())
|
| 121 |
st.success('Data successfully stored. Thank you for taking the survey!', icon="✅")
|
| 122 |
-
st.info(f'The IPFS hash is: {IPFS_hash}', icon="ℹ️")
|
| 123 |
st.info(f'The Ethereum hash is: {tx_receipt.logs[0].transactionHash.hex()}', icon="ℹ️")
|
| 124 |
|
| 125 |
return tx_receipt.transactionHash.hex()
|
|
@@ -159,8 +158,8 @@ def retreive_ipfs_hash_data(hashes):
|
|
| 159 |
def submission(survey_data):
|
| 160 |
ipfs_hash = upload_json_to_ipfs(survey_data)
|
| 161 |
if ipfs_hash:
|
| 162 |
-
|
| 163 |
upload_to_blockchain(ipfs_hash)
|
|
|
|
| 164 |
|
| 165 |
total_number_pages = 3
|
| 166 |
placeholder_buttons = None
|
|
|
|
| 119 |
print("Transaction successful!")
|
| 120 |
print("ETH Tx Hash:", tx_receipt.transactionHash.hex())
|
| 121 |
st.success('Data successfully stored. Thank you for taking the survey!', icon="✅")
|
|
|
|
| 122 |
st.info(f'The Ethereum hash is: {tx_receipt.logs[0].transactionHash.hex()}', icon="ℹ️")
|
| 123 |
|
| 124 |
return tx_receipt.transactionHash.hex()
|
|
|
|
| 158 |
def submission(survey_data):
|
| 159 |
ipfs_hash = upload_json_to_ipfs(survey_data)
|
| 160 |
if ipfs_hash:
|
|
|
|
| 161 |
upload_to_blockchain(ipfs_hash)
|
| 162 |
+
st.info(f'The IPFS hash is: {ipfs_hash}', icon="ℹ️")
|
| 163 |
|
| 164 |
total_number_pages = 3
|
| 165 |
placeholder_buttons = None
|