diff --git a/ape_polygon/ecosystem.py b/ape_polygon/ecosystem.py index 4d267e1..3677288 100644 --- a/ape_polygon/ecosystem.py +++ b/ape_polygon/ecosystem.py @@ -2,6 +2,7 @@ from ape.api.config import PluginConfig from ape.api.networks import LOCAL_NETWORK_NAME +from ape.utils import DEFAULT_LOCAL_TRANSACTION_ACCEPTANCE_TIMEOUT from ape_ethereum.ecosystem import Ethereum, NetworkConfig NETWORKS = { @@ -19,12 +20,13 @@ def _create_network_config( ) -def _create_local_config() -> NetworkConfig: +def _create_local_config(**kwargs) -> NetworkConfig: return _create_network_config( required_confirmations=0, - block_time=0, default_provider="test", + transaction_acceptance_timeout=DEFAULT_LOCAL_TRANSACTION_ACCEPTANCE_TIMEOUT, gas_limit="max", + **kwargs, ) diff --git a/tests/test_ecosystem.py b/tests/test_ecosystem.py index 39be27a..4588f67 100644 --- a/tests/test_ecosystem.py +++ b/tests/test_ecosystem.py @@ -2,10 +2,6 @@ from ape_ethereum.transactions import TransactionType -def test_gas_limit(polygon): - assert polygon.config.local.gas_limit == "max" - - @pytest.mark.parametrize("type", (0, "0x0")) def test_create_transaction(polygon, type): with polygon.local.use_provider("test"):