Skip to content

Commit

Permalink
feat: re-adds attributes to __init__
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwise-constructs committed Nov 20, 2024
1 parent 1c99d21 commit 9a19f30
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions ape_fantom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,30 @@ def providers():
yield "fantom", network_name, Node

yield "fantom", LOCAL_NETWORK_NAME, LocalProvider


def __getattr__(name: str):
if name == "NETWORKS":
from .ecosystem import NETWORKS

return NETWORKS

elif name == "Fantom":
from .ecosystem import Fantom

return Fantom

elif name == "FantomConfig":
from .ecosystem import FantomConfig

return FantomConfig

else:
raise AttributeError(name)


__all__ = [
"NETWORKS",
"Fantom",
"FantomConfig",
]

0 comments on commit 9a19f30

Please sign in to comment.