Use `beacon` wrapper in `upgrade_lc_header_to_capella`

This commit is contained in:
Etan Kissling 2023-01-13 14:59:34 +01:00
parent ca32fe8347
commit a580f82c7d
No known key found for this signature in database
GPG Key ID: B21DA824C5A3D03D
1 changed files with 2 additions and 2 deletions

View File

@ -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,
)
```