Skip to content

Commit

Permalink
fix: make wrk
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Nov 14, 2024
1 parent 2f1fbfd commit acee287
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/ape/api/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def _networks_from_evmchains(self) -> dict[str, "NetworkAPI"]:
for network_name, data in PUBLIC_CHAIN_META.get(self.name, {}).items()
if network_name not in self._networks_from_plugins
}
forked_networks: dict[str, type[ForkedNetworkAPI]] = {}
forked_networks: dict[str, ForkedNetworkAPI] = {}
for network_name, network in networks.items():
if network_name.endswith("-fork"):
# Already a fork.
Expand All @@ -336,7 +336,9 @@ def _networks_from_evmchains(self) -> dict[str, "NetworkAPI"]:
# The forked version of this network is already known.
continue

forked_networks[fork_network_name] = ForkedNetworkAPI
forked_networks[fork_network_name] = ForkedNetworkAPI(
name=fork_network_name, ecosystem=self
)

return {**networks, **forked_networks}

Expand Down
2 changes: 1 addition & 1 deletion tests/functional/test_network_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,4 +353,4 @@ def supports_chain(cls, chain_id):

def test_evm_chains_auto_forked_networks_exist(networks):
# NOTE: Moonbeam networks exist in evmchains only; that is how Ape knows about them.
assert issubclass(networks.moonbeam.moonriver_fork, ForkedNetworkAPI)
assert isinstance(networks.moonbeam.moonriver_fork, ForkedNetworkAPI)

0 comments on commit acee287

Please sign in to comment.