Skip to content

Commit

Permalink
Merge pull request #666 from Chia-Network/altendky-patch-6
Browse files Browse the repository at this point in the history
actually add the zeros attributes
  • Loading branch information
altendky authored Aug 15, 2024
2 parents 9247b17 + ea0bc64 commit dd0c91f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wheel/python/chia_rs/sized_bytes.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ 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)


_add_zeros()

0 comments on commit dd0c91f

Please sign in to comment.