From 8631cad251e0ce84e400a737c937a48c914228fd Mon Sep 17 00:00:00 2001 From: Diederik Loerakker Date: Tue, 4 Jun 2019 15:22:34 +0200 Subject: [PATCH] Apply suggestions from code review Co-Authored-By: Danny Ryan --- test_libs/pyspec/eth2spec/utils/ssz/ssz_impl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test_libs/pyspec/eth2spec/utils/ssz/ssz_impl.py b/test_libs/pyspec/eth2spec/utils/ssz/ssz_impl.py index 9c1fcdc61..ea4313c67 100644 --- a/test_libs/pyspec/eth2spec/utils/ssz/ssz_impl.py +++ b/test_libs/pyspec/eth2spec/utils/ssz/ssz_impl.py @@ -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)]