Error stops script when staking with all slots taken
Closed this issue · 0 comments
dagacha commented
./run_service.sh
---------------
Trader runner
---------------
This script will assist you in setting up and running the Trader service (https://github.com/valory-xyz/trader.git).
Python version 3.10.12 is compatible
Use staking?
------------
Do you want to stake this service? (yes/no): yes
Traceback (most recent call last):
File "/home/parallels/work/0xe84605F215126AbdafB0B5A47De2d513E80aba68/trader-quickstart/trader/../scripts/get_available_staking_slots.py", line 47, in <module>
available_staking_slots = get_available_staking_slots(
File "/home/parallels/work/0xe84605F215126AbdafB0B5A47De2d513E80aba68/trader-quickstart/scripts/utils.py", line 241, in get_available_staking_slots
max_num_services = staking_contract.max_num_services(
File "/home/parallels/work/0xe84605F215126AbdafB0B5A47De2d513E80aba68/trader-quickstart/trader/packages/valory/contracts/service_staking_token/contract.py", line 144, in max_num_services
contract = cls.get_instance(ledger_api, contract_address)
File "/home/parallels/.cache/pypoetry/virtualenvs/trader-0oWu21r2-py3.10/lib/python3.10/site-packages/aea/contracts/base.py", line 93, in get_instance
instance = ledger_api.get_contract_instance(
File "/home/parallels/.cache/pypoetry/virtualenvs/trader-0oWu21r2-py3.10/lib/python3.10/site-packages/aea_ledger_ethereum/ethereum.py", line 1300, in get_contract_instance
_contract_address = self.api.to_checksum_address(contract_address)
File "/home/parallels/.cache/pypoetry/virtualenvs/trader-0oWu21r2-py3.10/lib/python3.10/site-packages/web3/main.py", line 264, in to_checksum_address
return to_checksum_address(value)
File "/home/parallels/.cache/pypoetry/virtualenvs/trader-0oWu21r2-py3.10/lib/python3.10/site-packages/eth_utils/address.py", line 112, in to_checksum_address
norm_address = to_normalized_address(value)
File "/home/parallels/.cache/pypoetry/virtualenvs/trader-0oWu21r2-py3.10/lib/python3.10/site-packages/eth_utils/address.py", line 63, in to_normalized_address
raise ValueError(
ValueError: Unknown format '', attempted to normalize to '0x'