Skip to content

Commit

Permalink
Merge pull request #609 from lidofinance/fix-lost-conversion
Browse files Browse the repository at this point in the history
fix: missed CommitteeIndex conversion
  • Loading branch information
F4ever authored Jan 30, 2025
2 parents 850924f + bd03c5c commit 003a619
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/utils/dataclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from types import GenericAlias
from typing import Callable, Self, Sequence

from src.types import BlockNumber, EpochNumber, Gwei, SlotNumber, Timestamp, ValidatorIndex
from src.types import BlockNumber, CommitteeIndex, EpochNumber, Gwei, SlotNumber, Timestamp, ValidatorIndex
from src.utils.abi import named_tuple_to_dataclass


Expand Down Expand Up @@ -44,7 +44,16 @@ def __get_dataclass_factory(field_type):

@staticmethod
def __is_numberish_type(field_type):
return field_type in (int, Gwei, BlockNumber, SlotNumber, EpochNumber, Timestamp, ValidatorIndex)
return field_type in (
int,
Gwei,
BlockNumber,
SlotNumber,
EpochNumber,
Timestamp,
ValidatorIndex,
CommitteeIndex,
)


@dataclass
Expand Down

0 comments on commit 003a619

Please sign in to comment.