Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ from ocean_lib.web3_internal.wallet import Wallet
|
|
5 |
from ocean_lib.web3_internal.currency import from_wei # wei is the smallest denomination of ether e.g. like cents
|
6 |
# from ocean_lib.web3_internal.currency import pretty_ether_and_wei
|
7 |
import streamlit as st
|
|
|
8 |
from wallet_connect import connect
|
9 |
|
10 |
d = {
|
@@ -20,10 +21,11 @@ ocean = Ocean(d)
|
|
20 |
|
21 |
def wallet():
|
22 |
|
23 |
-
|
24 |
-
st.write(
|
25 |
-
|
26 |
-
|
|
|
27 |
|
28 |
OCEAN_token = BToken(ocean.web3, ocean.OCEAN_address)
|
29 |
|
|
|
5 |
from ocean_lib.web3_internal.currency import from_wei # wei is the smallest denomination of ether e.g. like cents
|
6 |
# from ocean_lib.web3_internal.currency import pretty_ether_and_wei
|
7 |
import streamlit as st
|
8 |
+
import Web3
|
9 |
from wallet_connect import connect
|
10 |
|
11 |
d = {
|
|
|
21 |
|
22 |
def wallet():
|
23 |
|
24 |
+
lower_case_address = connect("wallet")
|
25 |
+
st.write(lower_case_address[0][0:1])
|
26 |
+
address = Web3.toChecksumAddress(lower_case_address)
|
27 |
+
st.write(address)
|
28 |
+
if address[0][0:1] == "0x":
|
29 |
|
30 |
OCEAN_token = BToken(ocean.web3, ocean.OCEAN_address)
|
31 |
|