Skip to content

Commit

Permalink
feat: stop estimating gas in tests [APE-1032] (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
z80dev authored Jun 13, 2023
1 parent 7fbf0a8 commit 46d9b22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 4 additions & 2 deletions ape_polygon/ecosystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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,
)


Expand Down
4 changes: 0 additions & 4 deletions tests/test_ecosystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit 46d9b22

Please sign in to comment.