Skip to content

Commit 3f63da6

Browse files
committed
tests: add invalid cancun blob tests as valid.
1 parent 73c4eb8 commit 3f63da6

File tree

3 files changed

+518
-0
lines changed

3 files changed

+518
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Cross-client EIP-7742 Tests."""
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
"""
2+
Defines EIP-4844 specification constants and functions.
3+
"""
4+
5+
from dataclasses import dataclass
6+
from hashlib import sha256
7+
from typing import Optional
8+
9+
from ethereum_test_tools import Transaction
10+
11+
12+
@dataclass(frozen=True)
13+
class BlockHeaderBlobGasFields:
14+
"""
15+
A helper class for the blob gas fields in a block header.
16+
"""
17+
18+
excess_blob_gas: int
19+
blob_gas_used: int
20+
21+
22+
@dataclass(frozen=True)
23+
class ReferenceSpec:
24+
"""
25+
Defines the reference spec version and git path.
26+
"""
27+
28+
git_path: str
29+
version: str
30+
31+
32+
ref_spec_7742 = ReferenceSpec(
33+
"EIPS/eip-7742.md", "f0eb6a364aaf5ccb43516fa2c269a54fb881ecfd"
34+
)

0 commit comments

Comments
 (0)