From fceb943aa103049bb1b9d54cc9c2f08bcceea08c Mon Sep 17 00:00:00 2001 From: kompotkot Date: Wed, 2 Nov 2022 14:58:39 +0000 Subject: [PATCH] Typo and black fix --- moonworm/crawler/moonstream_ethereum_state_provider.py | 4 +++- moonworm/crawler/networks.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/moonworm/crawler/moonstream_ethereum_state_provider.py b/moonworm/crawler/moonstream_ethereum_state_provider.py index b330798..3600c03 100644 --- a/moonworm/crawler/moonstream_ethereum_state_provider.py +++ b/moonworm/crawler/moonstream_ethereum_state_provider.py @@ -81,7 +81,9 @@ class MoonstreamEthereumStateProvider(EthereumStateProvider): @staticmethod def _transform_to_w3_tx( - tx_raw: Union[EthereumTransaction, MumbaiTransaction, PolygonTransaction, XDaiTransaction], + tx_raw: Union[ + EthereumTransaction, MumbaiTransaction, PolygonTransaction, XDaiTransaction + ], ) -> Dict[str, Any]: tx = { "blockNumber": tx_raw.block_number, diff --git a/moonworm/crawler/networks.py b/moonworm/crawler/networks.py index dd271df..16a7bb8 100644 --- a/moonworm/crawler/networks.py +++ b/moonworm/crawler/networks.py @@ -33,12 +33,12 @@ MODELS: Dict[Network, Dict[str, Base]] = { "labels": EthereumLabel, "transactions": EthereumTransaction, }, - Network.polygon: { + Network.mumbai: { "blocks": MumbaiBlock, "labels": MumbaiLabel, "transactions": MumbaiTransaction, }, - Network.mumbai: { + Network.polygon: { "blocks": PolygonBlock, "labels": PolygonLabel, "transactions": PolygonTransaction,