Skip to content

Commit

Permalink
Update sized_bytes.py
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky authored Jun 24, 2024
1 parent c204401 commit b11d1b2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions wheel/python/chia_rs/sized_bytes.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class bytes480(SizedBytes):
zeros: bytes480


for cls in globals().values():
if isinstance(cls, type) and cls is not SizedBytes and issubclass(cls, SizedBytes):
cls.zeros = cls(b"\x00" * cls._size)
def _add_zeros():
for cls in list(globals().values()):
if isinstance(cls, type) and cls is not SizedBytes and issubclass(cls, SizedBytes):
cls.zeros = cls(b"\x00" * cls._size)

0 comments on commit b11d1b2

Please sign in to comment.