Make type-inference stable on empty lists/vectors
This commit is contained in:
parent
aaea74e4bc
commit
972168d695
|
@ -262,7 +262,6 @@ def infer_type(value):
|
|||
else:
|
||||
raise Exception("Failed to infer type")
|
||||
|
||||
|
||||
def hash_tree_root(value, typ=None):
|
||||
if typ is None:
|
||||
typ = infer_type(value)
|
||||
|
|
Loading…
Reference in New Issue