diff --git a/src/ape/managers/networks.py b/src/ape/managers/networks.py index 64d4a87381..a13f0a7ba6 100644 --- a/src/ape/managers/networks.py +++ b/src/ape/managers/networks.py @@ -135,7 +135,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: diff --git a/tests/functional/test_network_manager.py b/tests/functional/test_network_manager.py index c61e31cfe7..5cdf2deaaa 100644 --- a/tests/functional/test_network_manager.py +++ b/tests/functional/test_network_manager.py @@ -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"