From 9db6d3f2ef7d3d6e64b9b033d6185da1034f10ed Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Mon, 15 Jul 2024 14:02:07 +0200 Subject: [PATCH] Remove unnecessary cast --- specs/electra/light-client/sync-protocol.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specs/electra/light-client/sync-protocol.md b/specs/electra/light-client/sync-protocol.md index 54dc076dbb..ef9dcd5987 100644 --- a/specs/electra/light-client/sync-protocol.md +++ b/specs/electra/light-client/sync-protocol.md @@ -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` @@ -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` @@ -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`