Skip to content

Commit 7b5acbf

Browse files
committed
Fix Capella fork test assertions
1 parent 902a9c9 commit 7b5acbf

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

specs/capella/beacon-chain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ class BeaconState(Container):
242242
current_sync_committee: SyncCommittee
243243
next_sync_committee: SyncCommittee
244244
# Execution
245-
latest_execution_payload_header: ExecutionPayloadHeader
245+
latest_execution_payload_header: ExecutionPayloadHeader # [Modified in Capella]
246246
# Withdrawals
247247
next_withdrawal_index: WithdrawalIndex # [New in Capella]
248248
next_withdrawal_validator_index: ValidatorIndex # [New in Capella]

tests/core/pyspec/eth2spec/test/helpers/capella/fork.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,12 @@ def run_fork_test(post_spec, pre_state):
2929
'inactivity_scores',
3030
# Sync
3131
'current_sync_committee', 'next_sync_committee',
32-
# Execution
33-
'latest_execution_payload_header',
3432
]
3533
for field in stable_fields:
3634
assert getattr(pre_state, field) == getattr(post_state, field)
3735

3836
# Modified fields
39-
modified_fields = ['fork']
37+
modified_fields = ['fork', 'latest_execution_payload_header']
4038
for field in modified_fields:
4139
assert getattr(pre_state, field) != getattr(post_state, field)
4240

0 commit comments

Comments
 (0)