mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-03 01:14:58 -05:00
Moves copy into SSZ container
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import copy
|
||||
from types import GeneratorType
|
||||
from typing import (
|
||||
List,
|
||||
@@ -151,6 +152,9 @@ class Container(object):
|
||||
def __hash__(self):
|
||||
return hash(self.hash_tree_root())
|
||||
|
||||
def copy(self):
|
||||
return copy.deepcopy(self)
|
||||
|
||||
@classmethod
|
||||
def get_fields_dict(cls):
|
||||
return dict(cls.__annotations__)
|
||||
|
||||
Reference in New Issue
Block a user