Pointing to correct network at moonworm_crawler

pull/635/head
kompotkot 2022-06-22 18:45:53 +00:00
rodzic 61c772cbaf
commit c2b8a55778
2 zmienionych plików z 12 dodań i 10 usunięć

Wyświetl plik

@ -144,11 +144,12 @@ def continuous_crawler(
if web3 is None:
web3 = _retry_connect_web3(blockchain_type, access_id=access_id)
network = (
Network.ethereum
if blockchain_type == AvailableBlockchainType.ETHEREUM
else Network.polygon
)
network = Network.ethereum
if blockchain_type == AvailableBlockchainType.POLYGON:
network = Network.polygon
elif blockchain_type == AvailableBlockchainType.XDAI:
network = Network.xdai
ethereum_state_provider = MoonstreamEthereumStateProvider(
web3,
network,

Wyświetl plik

@ -71,11 +71,12 @@ def function_call_crawler(
end_block: int,
batch_size: int,
):
network = (
Network.ethereum
if blockchain_type == AvailableBlockchainType.ETHEREUM
else Network.polygon
)
network = Network.ethereum
if blockchain_type == AvailableBlockchainType.POLYGON:
network = Network.polygon
elif blockchain_type == AvailableBlockchainType.XDAI:
network = Network.xdai
ethereum_state_provider = MoonstreamEthereumStateProvider(
web3,
network,