Skip to content

Commit

Permalink
fix some capella and bellatrix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
potuz committed Jul 24, 2024
1 parent 1c9975b commit 5568a39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ def run_withdrawals_processing(spec, state, execution_payload, num_expected_with
yield 'execution_payload', execution_payload

if not valid:
if is_post_eip7732:
if is_post_eip7732(spec):
expect_assertion_error(lambda: spec.process_withdrawals(state))
else:
expect_assertion_error(lambda: spec.process_withdrawals(state, execution_payload))
yield 'post', None
return

if is_post_eip7732:
if is_post_eip7732(spec):
spec.process_withdrawals(state)
else:
spec.process_withdrawals(state, execution_payload)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def build_randomized_execution_payload(spec, state, rng):

def build_state_with_incomplete_transition(spec, state):
header = spec.ExecutionPayloadHeader()
if is_post_eip7732:
if is_post_eip7732(spec):
kzgs = spec.List[spec.KZGCommitment, spec.MAX_BLOB_COMMITMENTS_PER_BLOCK]()
header.blob_kzg_commitments_root = kzgs.hash_tree_root()

Expand Down

0 comments on commit 5568a39

Please sign in to comment.