Skip to content

Commit

Permalink
update: node to require bytes to instantiate node class
Browse files Browse the repository at this point in the history
  • Loading branch information
olivmath committed Dec 31, 2023
1 parent 82ddc61 commit e41ff56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions merkly/node.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from enum import Enum
from pydantic import BaseModel, StrictBytes
from typing import Optional
from pydantic import BaseModel
from enum import Enum


class Side(Enum):
Expand All @@ -13,7 +13,7 @@ class Node(BaseModel):
# 🍃 Leaf of Merkle Tree
"""

data: Optional[bytes] = None
data: Optional[StrictBytes] = None
side: Side = Side.LEFT

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

0 comments on commit e41ff56

Please sign in to comment.