Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,10 +23,11 @@ def wallet():
|
|
23 |
|
24 |
lower_case_address = connect("wallet")
|
25 |
st.write(lower_case_address[0][0:2])
|
|
|
26 |
if len(lower_case_address[0]) > 3:
|
27 |
address = Web3.toChecksumAddress(lower_case_address[0])
|
28 |
st.write(address)
|
29 |
-
if
|
30 |
|
31 |
OCEAN_token = BToken(ocean.web3, ocean.OCEAN_address)
|
32 |
|
|
|
23 |
|
24 |
lower_case_address = connect("wallet")
|
25 |
st.write(lower_case_address[0][0:2])
|
26 |
+
address = ''
|
27 |
if len(lower_case_address[0]) > 3:
|
28 |
address = Web3.toChecksumAddress(lower_case_address[0])
|
29 |
st.write(address)
|
30 |
+
if str(address[0][0:2]) == "0x":
|
31 |
|
32 |
OCEAN_token = BToken(ocean.web3, ocean.OCEAN_address)
|
33 |
|