Spaces:
Runtime error
Runtime error
Commit
·
2ee2a5d
1
Parent(s):
2998659
check addresses match
Browse files
app.py
CHANGED
@@ -21,13 +21,14 @@ def wallet(private_key):
|
|
21 |
address = account.address
|
22 |
|
23 |
wallet = Wallet(ocean.web3, private_key, transaction_timeout=20, block_confirmations=config.block_confirmations)
|
|
|
24 |
|
25 |
OCEAN_token = BToken(ocean.web3, ocean.OCEAN_address)
|
26 |
|
27 |
eth_balance = from_wei(ocean.web3.eth.get_balance(address))
|
28 |
ocean_balance = from_wei(OCEAN_token.balanceOf(address))
|
29 |
|
30 |
-
return address,
|
31 |
|
32 |
# def wallet(private_key, did):
|
33 |
# wallet = Wallet(ocean.web3, private_key, transaction_timeout=20, block_confirmations=config.block_confirmations)
|
|
|
21 |
address = account.address
|
22 |
|
23 |
wallet = Wallet(ocean.web3, private_key, transaction_timeout=20, block_confirmations=config.block_confirmations)
|
24 |
+
address2 = wallet.address
|
25 |
|
26 |
OCEAN_token = BToken(ocean.web3, ocean.OCEAN_address)
|
27 |
|
28 |
eth_balance = from_wei(ocean.web3.eth.get_balance(address))
|
29 |
ocean_balance = from_wei(OCEAN_token.balanceOf(address))
|
30 |
|
31 |
+
return address, address2, mnemonic, eth_balance, ocean_balance
|
32 |
|
33 |
# def wallet(private_key, did):
|
34 |
# wallet = Wallet(ocean.web3, private_key, transaction_timeout=20, block_confirmations=config.block_confirmations)
|