Skip to content

Commit f53f375

Browse files
committed
Lint
1 parent 82800a0 commit f53f375

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/berlin/eip2929_gas_cost_increases/test_call_gas_cost_change.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Tests supported precompiled contracts."""
22

3-
from typing import Iterator, Tuple
3+
from typing import Any, Iterator, Tuple
44

55
import pytest
66

@@ -14,6 +14,7 @@
1414
Transaction,
1515
)
1616
from ethereum_test_tools.vm.opcode import Opcodes as Op
17+
from ethereum_test_types.types import EOA
1718
from ethereum_test_vm.bytecode import Bytecode
1819

1920
REFERENCE_SPEC_GIT_PATH = "EIPS/eip-2929.md"
@@ -40,22 +41,22 @@ def contract_bytecode(**call_kwargs) -> Bytecode:
4041
)
4142

4243

43-
def initial_setup_bytecode(sender: Account) -> Bytecode:
44+
def initial_setup_bytecode(address: EOA) -> Bytecode:
4445
"""Generate bytecode for the initial setup to be tested."""
4546
return (
46-
Op.MSTORE(0, 0) + Op.MSTORE(0x100, 0xDEADBEEF) + Op.CALL(address=sender, value=1) + Op.POP
47+
Op.MSTORE(0, 0) + Op.MSTORE(0x100, 0xDEADBEEF) + Op.CALL(address=address, value=1) + Op.POP
4748
)
4849

4950

50-
def call_addresses_and_expected_output(fork: Fork) -> Iterator[Tuple[str, bool]]:
51+
def call_addresses_and_expected_output(fork: Fork) -> Iterator[Any]:
5152
"""
5253
Yield the addresses of precompiled contracts and their support status for a given fork.
5354
5455
Args:
5556
fork (Fork): The fork instance containing precompiled contract information.
5657
5758
Yields:
58-
Iterator[Tuple[str, bool]]: A tuple containing the address in hexadecimal format and a
59+
Iterator[Any]: A pytest ParameterSet containing the address in hexadecimal format and a
5960
boolean indicating whether the address is a supported precompile.
6061
6162
"""

0 commit comments

Comments
 (0)