Skip to content

Commit 088f771

Browse files
committed
fix spec error in get_generalized_index function
1 parent 5cce790 commit 088f771

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ssz/merkle-proofs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ def get_generalized_index(typ: SSZType, *path: PyUnion[int, SSZVariableName]) ->
176176
for p in path:
177177
assert not issubclass(typ, BasicValue) # If we descend to a basic type, the path cannot continue further
178178
if p == '__len__':
179-
typ = uint64
180179
assert issubclass(typ, (List, ByteList))
180+
typ = uint64
181181
root = GeneralizedIndex(root * 2 + 1)
182182
else:
183183
pos, _, _ = get_item_position(typ, p)

0 commit comments

Comments
 (0)