Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update: node to require bytes to instantiate node class #51

Merged
merged 2 commits into from
Dec 31, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
update: node to require bytes to instantiate node class
  • Loading branch information
olivmath committed Dec 31, 2023
commit e41ff562181a4929516f003d19d68e7181632872
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
Loading