From 82240d8dbd0f083efb66c8c5b2388eb153d69977 Mon Sep 17 00:00:00 2001 From: protolambda Date: Thu, 20 Jun 2019 18:01:57 +0200 Subject: [PATCH] fix vector default type --- test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py b/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py index 341df880a..6595c966f 100644 --- a/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py +++ b/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py @@ -333,7 +333,7 @@ class Vector(BaseList): @classmethod def default(cls): - return [cls.elem_type.default() for _ in range(cls.length)] + return cls(cls.elem_type.default() for _ in range(cls.length)) @classmethod def is_fixed_size(cls):