mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-26 09:15:17 +00:00
fix vector default type
This commit is contained in:
parent
977856b06f
commit
82240d8dbd
@ -333,7 +333,7 @@ class Vector(BaseList):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def default(cls):
|
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
|
@classmethod
|
||||||
def is_fixed_size(cls):
|
def is_fixed_size(cls):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user