Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,14 +21,13 @@ ocean = Ocean(d)
|
|
21 |
def wallet():
|
22 |
|
23 |
address = connect("wallet")
|
24 |
-
st.write(address[0])
|
25 |
|
26 |
-
if address != "not":
|
27 |
|
28 |
OCEAN_token = BToken(ocean.web3, ocean.OCEAN_address)
|
29 |
|
30 |
-
eth_balance = from_wei(ocean.web3.eth.get_balance(address))
|
31 |
-
ocean_balance = from_wei(OCEAN_token.balanceOf(address))
|
32 |
|
33 |
st.write(f'Address: {address}')
|
34 |
st.write(f'ETH Balance: {eth_balance}')
|
|
|
21 |
def wallet():
|
22 |
|
23 |
address = connect("wallet")
|
|
|
24 |
|
25 |
+
if address[0] != "not":
|
26 |
|
27 |
OCEAN_token = BToken(ocean.web3, ocean.OCEAN_address)
|
28 |
|
29 |
+
eth_balance = from_wei(ocean.web3.eth.get_balance(address[0]))
|
30 |
+
ocean_balance = from_wei(OCEAN_token.balanceOf(address[0]))
|
31 |
|
32 |
st.write(f'Address: {address}')
|
33 |
st.write(f'ETH Balance: {eth_balance}')
|