Skip to content

Commit 9db6d3f

Browse files
committed
Remove unnecessary cast
1 parent e2c06c3 commit 9db6d3f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

specs/electra/light-client/sync-protocol.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def finalized_root_gindex_at_slot(slot: Slot) -> GeneralizedIndex:
7070
# [Modified in Electra]
7171
if epoch >= ELECTRA_FORK_EPOCH:
7272
return FINALIZED_ROOT_GINDEX_ELECTRA
73-
return GeneralizedIndex(FINALIZED_ROOT_GINDEX)
73+
return FINALIZED_ROOT_GINDEX
7474
```
7575

7676
### Modified `current_sync_committee_gindex_at_slot`
@@ -82,7 +82,7 @@ def current_sync_committee_gindex_at_slot(slot: Slot) -> GeneralizedIndex:
8282
# [Modified in Electra]
8383
if epoch >= ELECTRA_FORK_EPOCH:
8484
return CURRENT_SYNC_COMMITTEE_GINDEX_ELECTRA
85-
return GeneralizedIndex(CURRENT_SYNC_COMMITTEE_GINDEX)
85+
return CURRENT_SYNC_COMMITTEE_GINDEX
8686
```
8787

8888
### Modified `next_sync_committee_gindex_at_slot`
@@ -94,7 +94,7 @@ def next_sync_committee_gindex_at_slot(slot: Slot) -> GeneralizedIndex:
9494
# [Modified in Electra]
9595
if epoch >= ELECTRA_FORK_EPOCH:
9696
return NEXT_SYNC_COMMITTEE_GINDEX_ELECTRA
97-
return GeneralizedIndex(NEXT_SYNC_COMMITTEE_GINDEX)
97+
return NEXT_SYNC_COMMITTEE_GINDEX
9898
```
9999

100100
### Modified `get_lc_execution_root`

0 commit comments

Comments
 (0)