Skip to content

Commit e41ff56

Browse files
committed
update: node to require bytes to instantiate node class
1 parent 82ddc61 commit e41ff56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

merkly/node.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from enum import Enum
1+
from pydantic import BaseModel, StrictBytes
22
from typing import Optional
3-
from pydantic import BaseModel
3+
from enum import Enum
44

55

66
class Side(Enum):
@@ -13,7 +13,7 @@ class Node(BaseModel):
1313
# 🍃 Leaf of Merkle Tree
1414
"""
1515

16-
data: Optional[bytes] = None
16+
data: Optional[StrictBytes] = None
1717
side: Side = Side.LEFT
1818

1919
def __eq__(self, other: "Node") -> bool:

0 commit comments

Comments
 (0)