Skip to content

Commit

Permalink
fix: ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz committed Dec 27, 2024
1 parent b45b797 commit e5d05c8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 1 addition & 3 deletions tests/frontier/precompiles/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
"""
Test for precompiles that apply for all forks starting from Frontier.
"""
"""Test for precompiles that apply for all forks starting from Frontier."""
20 changes: 11 additions & 9 deletions tests/frontier/precompiles/test_precompile_absence.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
"""
abstract: Test Calling Precompile Range (close to zero)
"""
"""abstract: Test Calling Precompile Range (close to zero)."""

import pytest

from ethereum_test_forks import Fork
from ethereum_test_tools import Account, Address, Alloc, Bytecode
from ethereum_test_tools import (
Account,
Address,
Alloc,
Bytecode,
StateTestFiller,
Storage,
Transaction,
)
from ethereum_test_tools import Opcodes as Op
from ethereum_test_tools import StateTestFiller, Storage, Transaction

UPPER_BOUND = 0x101
RETURNDATASIZE_OFFSET = 0x10000000000000000 # Must be greater than UPPER_BOUND
Expand All @@ -29,9 +33,7 @@ def test_precompile_absence(
fork: Fork,
calldata_size: int,
):
"""
Test that addresses close to zero are not precompiles unless active in the fork.
"""
"""Test that addresses close to zero are not precompiles unless active in the fork."""
active_precompiles = fork.precompiles()
storage = Storage()
call_code = Bytecode()
Expand Down

0 comments on commit e5d05c8

Please sign in to comment.