Fix typing problem: upgrade_to_altair should use phase0.get_current_epoch

This commit is contained in:
ericsson 2021-04-23 18:21:29 +03:00
parent dcb013ccf2
commit 93378afcd0

View File

@ -40,7 +40,7 @@ After `process_slots` of Phase 0 finishes, if `state.slot % SLOTS_PER_EPOCH == 0
```python
def upgrade_to_altair(pre: phase0.BeaconState) -> BeaconState:
epoch = get_current_epoch(pre)
epoch = phase0.get_current_epoch(pre)
post = BeaconState(
# Versioning
genesis_time=pre.genesis_time,