From 088f77161b8882ba93ee6461fb9c4395fd4eaeba Mon Sep 17 00:00:00 2001 From: Matt Kocubinski Date: Tue, 9 Jul 2024 21:26:12 +0200 Subject: [PATCH] fix spec error in get_generalized_index function --- ssz/merkle-proofs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssz/merkle-proofs.md b/ssz/merkle-proofs.md index 919ff07f5..9b9127d63 100644 --- a/ssz/merkle-proofs.md +++ b/ssz/merkle-proofs.md @@ -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)