Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -940,8 +940,8 @@ elif st.session_state["current_page"] == 24:
|
|
| 940 |
|
| 941 |
# Call your function: 11155111 is Sepolia's id
|
| 942 |
call_function = contract.functions.storeHash(IPFS_hash).build_transaction({"chainId": 11155111,
|
| 943 |
-
"from": "
|
| 944 |
-
"nonce": w3.eth.get_transaction_count("
|
| 945 |
|
| 946 |
# Sign transaction
|
| 947 |
signed_tx = w3.eth.account.sign_transaction(call_function, private_key=st.secrets["pk"])
|
|
|
|
| 940 |
|
| 941 |
# Call your function: 11155111 is Sepolia's id
|
| 942 |
call_function = contract.functions.storeHash(IPFS_hash).build_transaction({"chainId": 11155111,
|
| 943 |
+
"from": "0x3Eb5abC0c5FeDCe75854A61163b7ee63baE71567",
|
| 944 |
+
"nonce": w3.eth.get_transaction_count("0x3Eb5abC0c5FeDCe75854A61163b7ee63baE71567")}) # Initialize address nonce
|
| 945 |
|
| 946 |
# Sign transaction
|
| 947 |
signed_tx = w3.eth.account.sign_transaction(call_function, private_key=st.secrets["pk"])
|