Skip to content

Commit 351c984

Browse files
authored
Merge pull request #2 from marioevz/pytest-eip-4844-blobhash-tests
Fixes to EIP 4844 blobhash PR
2 parents 7b77648 + 9268288 commit 351c984

File tree

7 files changed

+490
-414
lines changed

7 files changed

+490
-414
lines changed

fillers/eips/eip4844/point_evaluation_vectors/go_kzg_4844_verify_kzg_proof.json

Lines changed: 483 additions & 363 deletions
Large diffs are not rendered by default.

fillers/eips/eip4844/point_evaluation_vectors/precompile_endianess.py

Lines changed: 0 additions & 47 deletions
This file was deleted.

fillers/eips/eip4844/test_blobhash_opcode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
random_blob_hashes,
3030
)
3131

32-
# TODO: uncomment post fork improvement merged
32+
# TODO: un-comment post fork improvement merged
3333
# pytestmark = pytest.mark.valid_from("Cancun")
3434
pytestmark = pytest.mark.parametrize("fork", forks_from(Cancun))
3535

fillers/eips/eip4844/test_blobhash_opcode_contexts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
from .util_blobhash import BlobhashContext, simple_blob_hashes
2020

21-
# TODO: uncomment post fork improvement merged
21+
# TODO: un-comment post fork improvement merged
2222
# pytestmark = pytest.mark.valid_from("Cancun")
2323
pytestmark = pytest.mark.parametrize("fork", forks_from(Cancun))
2424

pytest.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ console_output_style = count
33
minversion = 7.0
44
python_files = *.py
55
testpaths = fillers/
6-
norecursedirs = fillers/eips/eip4844
76
addopts =
87
-p pytest_plugins.latest_fork
98
-p pytest_plugins.spec_version_checker

src/ethereum_test_tools/common/helpers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ def to_hash(input: int | str) -> str:
136136
return "0x" + to_hash_bytes(input).hex()
137137

138138

139-
def add_kzg_version(b_hashes: List[bytes], kzg_version: int) -> List[bytes]:
139+
def add_kzg_version(
140+
b_hashes: List[bytes | int | str], kzg_version: int
141+
) -> List[bytes]:
140142
"""
141143
Adds the Kzg Version to each blob hash.
142144
"""

whitelist.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ wd
4444
wds
4545
u256
4646
utils
47+
util
4748
validator
4849
vm
4950
gwei
@@ -259,6 +260,7 @@ modifyitems
259260
originalname
260261
parametrized
261262
param
263+
params
262264
parametrize
263265
pytestmark
264266
runtest

0 commit comments

Comments
 (0)