-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3027 from ethereum/eip-4844-fee-ssz-fix
eip4844: update tx_peek_blob_versioned_hashes to match tx type from fee market update
- Loading branch information
Showing
3 changed files
with
28 additions
and
4 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
23 changes: 23 additions & 0 deletions
23
tests/core/pyspec/eth2spec/test/eip4844/unittests/test_offset.py
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,23 @@ | ||
|
||
from eth2spec.test.helpers.constants import ( | ||
EIP4844, | ||
MINIMAL, | ||
) | ||
from eth2spec.test.helpers.sharding import ( | ||
get_sample_opaque_tx, | ||
) | ||
from eth2spec.test.context import ( | ||
with_phases, | ||
spec_state_test, | ||
with_presets, | ||
) | ||
|
||
|
||
@with_phases([EIP4844]) | ||
@spec_state_test | ||
@with_presets([MINIMAL]) | ||
def test_tx_peek_blob_versioned_hashes(spec, state): | ||
otx, blobs, commitments = get_sample_opaque_tx(spec) | ||
data_hashes = spec.tx_peek_blob_versioned_hashes(otx) | ||
expected = [spec.kzg_commitment_to_versioned_hash(blob_commitment) for blob_commitment in commitments] | ||
assert expected == data_hashes |
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