Skip to content

Commit c9c43e8

Browse files
hwwhwwdapplion
andauthored
Apply suggestions from code review
Co-authored-by: Lion - dapplion <[email protected]>
1 parent 4fe36de commit c9c43e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/core/pyspec/eth2spec/test/altair/transition/test_transition.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,11 +425,11 @@ def test_non_empty_historical_roots(state, fork_epoch, spec, post_spec, pre_tag,
425425
"""
426426
Test with non-empty pre-state `state.historical_roots`.
427427
428-
Since Capella froze `historical_roots`, Capealla spec doesn't invoke `process_historical_roots_update` anymore.
428+
Since Capella froze `historical_roots`, Capella spec doesn't invoke `process_historical_roots_update` anymore.
429429
Therefore, we need to fill in `historical_roots` with non-empty value.
430430
"""
431431
# fill in historical_roots with non-empty values
432-
pre_historical_roots = [b'\x56' * 32 for _ in range(spec.SLOTS_PER_HISTORICAL_ROOT)]
432+
pre_historical_roots = [b'\x56' * 32]
433433
state.historical_roots = pre_historical_roots
434434

435435
transition_until_fork(spec, state, fork_epoch)

0 commit comments

Comments
 (0)