Skip to content

Commit

Permalink
fix(tests): apply block gas limit for mcopy mem expansion (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz authored Apr 8, 2024
1 parent 2d9074e commit c6d12eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/cancun/eip5656_mcopy/test_mcopy_memory_expansion.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def post(bytecode_storage: Tuple[bytes, Storage.StorageDictType]) -> Mapping: #
@pytest.mark.valid_from("Cancun")
def test_mcopy_memory_expansion(
state_test: StateTestFiller,
env: Environment,
pre: Mapping[str, Account],
post: Mapping[str, Account],
tx: Transaction,
Expand All @@ -211,7 +212,7 @@ def test_mcopy_memory_expansion(
Perform MCOPY operations that expand the memory, and verify the gas it costs to do so.
"""
state_test(
env=Environment(),
env=env,
pre=pre,
post=post,
tx=tx,
Expand Down Expand Up @@ -263,6 +264,7 @@ def test_mcopy_memory_expansion(
@pytest.mark.valid_from("Cancun")
def test_mcopy_huge_memory_expansion(
state_test: StateTestFiller,
env: Environment,
pre: Mapping[str, Account],
post: Mapping[str, Account],
tx: Transaction,
Expand All @@ -272,7 +274,7 @@ def test_mcopy_huge_memory_expansion(
runs out of gas.
"""
state_test(
env=Environment(),
env=env,
pre=pre,
post=post,
tx=tx,
Expand Down

0 comments on commit c6d12eb

Please sign in to comment.