mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-01 13:25:39 +00:00
Apply suggestions from code review
Co-Authored-By: Danny Ryan <dannyjryan@gmail.com>
This commit is contained in:
parent
6d55ba9c8c
commit
8631cad251
@ -109,6 +109,7 @@ def pack(values, subtype):
|
||||
|
||||
|
||||
def chunkify(bytez):
|
||||
# pad `bytez` to nearest 32-byte multiple
|
||||
bytez += b'\x00' * (-len(bytez) % 32)
|
||||
return [bytez[i:i + 32] for i in range(0, len(bytez), 32)]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user