Skip to content

Commit

Permalink
feat(tests): update dup example
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz committed Jul 18, 2024
1 parent adc733a commit f36db6f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/frontier/opcodes/test_dup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
"""
import pytest

from ethereum_test_forks import EVMCodeType, Frontier, Homestead
from ethereum_test_forks import Frontier, Homestead
from ethereum_test_tools import Account, Alloc, Environment
from ethereum_test_tools import Opcodes as Op
from ethereum_test_tools import StateTestFiller, Storage, Transaction
from ethereum_test_tools.eof.v1 import Container


@pytest.mark.parametrize(
Expand Down Expand Up @@ -37,7 +36,6 @@
@pytest.mark.with_all_evm_code_types
def test_dup(
state_test: StateTestFiller,
evm_code_type: EVMCodeType,
fork: str,
dup_opcode: Op,
pre: Alloc,
Expand All @@ -63,9 +61,7 @@ def test_dup(
# Save each stack value into different keys in storage
account_code += sum(Op.PUSH1(i) + Op.SSTORE for i in range(0x11)) + Op.STOP

account = pre.deploy_contract(
account_code if evm_code_type == EVMCodeType.LEGACY else Container.Code(account_code)
)
account = pre.deploy_contract(account_code)

tx = Transaction(
ty=0x0,
Expand Down

0 comments on commit f36db6f

Please sign in to comment.