mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-19 23:19:28 +00:00
Update specs/light_client/merkle_proofs.md
This commit is contained in:
parent
e93e7a3f1a
commit
2e7c8fa529
@ -74,7 +74,7 @@ def get_elem_type(typ: ComplexType, index: Union[int, str]) -> Type:
|
||||
Returns the type of the element of an object of the given type with the given index
|
||||
or member variable name (eg. `7` for `x[7]`, `"foo"` for `x.foo`)
|
||||
"""
|
||||
return typ.get_fields()[key] if issubclass(typ, Container) else typ.elem_type
|
||||
return typ.get_fields()[index] if issubclass(typ, Container) else typ.elem_type
|
||||
|
||||
|
||||
def chunk_count(typ: SSZType) -> int:
|
||||
|
Loading…
x
Reference in New Issue
Block a user