Skip to content

Commit

Permalink
fix: ensure diff port
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Oct 31, 2024
1 parent 103ba0c commit 39233fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ape/managers/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def fork(
if is_fork_already:
# Forking a fork- to ensure is using a different Port,
# use the "auto-port" feature.
provider_settings["uri"] = "auto"
provider_settings["host"] = "auto"

fork_settings = {}
if block_number is not None:
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/test_network_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def test_fork(networks, mock_sepolia, mock_fork_provider):
# Fork the fork.
ctx2 = networks.fork()
with ctx2 as provider2:
assert provider2.partial_call[1]["provider_settings"]["uri"] == "auto"
assert provider2.partial_call[1]["provider_settings"]["host"] == "auto"
assert provider2.name == "mock"
assert provider2.network.name == "sepolia-fork"

Expand Down

0 comments on commit 39233fa

Please sign in to comment.