From a580f82c7d7b88d33b8c06b168447d46c3526b8f Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Fri, 13 Jan 2023 14:59:34 +0100 Subject: [PATCH] Use `beacon` wrapper in `upgrade_lc_header_to_capella` --- specs/capella/light-client/fork.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/capella/light-client/fork.md b/specs/capella/light-client/fork.md index ee2102b22..d5640e01b 100644 --- a/specs/capella/light-client/fork.md +++ b/specs/capella/light-client/fork.md @@ -22,9 +22,9 @@ This document describes how to upgrade existing light client objects based on th A Capella `LightClientStore` can still process earlier light client data. In order to do so, that pre-Capella data needs to be locally upgraded to Capella before processing. ```python -def upgrade_lc_header_to_capella(pre: BeaconBlockHeader) -> LightClientHeader: +def upgrade_lc_header_to_capella(pre: altair.LightClientHeader) -> LightClientHeader: return LightClientHeader( - beacon=pre, + beacon=pre.beacon, ) ```