Skip to content

Commit

Permalink
Remove unnecessary cast
Browse files Browse the repository at this point in the history
  • Loading branch information
etan-status committed Jul 15, 2024
1 parent e2c06c3 commit 9db6d3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions specs/electra/light-client/sync-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def finalized_root_gindex_at_slot(slot: Slot) -> GeneralizedIndex:
# [Modified in Electra]
if epoch >= ELECTRA_FORK_EPOCH:
return FINALIZED_ROOT_GINDEX_ELECTRA
return GeneralizedIndex(FINALIZED_ROOT_GINDEX)
return FINALIZED_ROOT_GINDEX
```

### Modified `current_sync_committee_gindex_at_slot`
Expand All @@ -82,7 +82,7 @@ def current_sync_committee_gindex_at_slot(slot: Slot) -> GeneralizedIndex:
# [Modified in Electra]
if epoch >= ELECTRA_FORK_EPOCH:
return CURRENT_SYNC_COMMITTEE_GINDEX_ELECTRA
return GeneralizedIndex(CURRENT_SYNC_COMMITTEE_GINDEX)
return CURRENT_SYNC_COMMITTEE_GINDEX
```

### Modified `next_sync_committee_gindex_at_slot`
Expand All @@ -94,7 +94,7 @@ def next_sync_committee_gindex_at_slot(slot: Slot) -> GeneralizedIndex:
# [Modified in Electra]
if epoch >= ELECTRA_FORK_EPOCH:
return NEXT_SYNC_COMMITTEE_GINDEX_ELECTRA
return GeneralizedIndex(NEXT_SYNC_COMMITTEE_GINDEX)
return NEXT_SYNC_COMMITTEE_GINDEX
```

### Modified `get_lc_execution_root`
Expand Down

0 comments on commit 9db6d3f

Please sign in to comment.