Skip to content

Commit

Permalink
Merge pull request #3838 from kocubinski/dev
Browse files Browse the repository at this point in the history
Fix spec error in get_generalized_index function
  • Loading branch information
hwwhww authored Aug 3, 2024
2 parents 7ab2bbe + 088f771 commit 1a086f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssz/merkle-proofs.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ def get_generalized_index(typ: SSZType, *path: PyUnion[int, SSZVariableName]) ->
for p in path:
assert not issubclass(typ, BasicValue) # If we descend to a basic type, the path cannot continue further
if p == '__len__':
typ = uint64
assert issubclass(typ, (List, ByteList))
typ = uint64
root = GeneralizedIndex(root * 2 + 1)
else:
pos, _, _ = get_item_position(typ, p)
Expand Down

0 comments on commit 1a086f6

Please sign in to comment.