-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add invalid cancun blob tests as valid.
- Loading branch information
1 parent
73c4eb8
commit 3f63da6
Showing
3 changed files
with
518 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Cross-client EIP-7742 Tests.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
""" | ||
Defines EIP-4844 specification constants and functions. | ||
""" | ||
|
||
from dataclasses import dataclass | ||
from hashlib import sha256 | ||
from typing import Optional | ||
|
||
from ethereum_test_tools import Transaction | ||
|
||
|
||
@dataclass(frozen=True) | ||
class BlockHeaderBlobGasFields: | ||
""" | ||
A helper class for the blob gas fields in a block header. | ||
""" | ||
|
||
excess_blob_gas: int | ||
blob_gas_used: int | ||
|
||
|
||
@dataclass(frozen=True) | ||
class ReferenceSpec: | ||
""" | ||
Defines the reference spec version and git path. | ||
""" | ||
|
||
git_path: str | ||
version: str | ||
|
||
|
||
ref_spec_7742 = ReferenceSpec( | ||
"EIPS/eip-7742.md", "f0eb6a364aaf5ccb43516fa2c269a54fb881ecfd" | ||
) |
Oops, something went wrong.