diff --git a/beacon_chain/ssz.nim b/beacon_chain/ssz.nim index 46f3e8e4d..c6f8db332 100644 --- a/beacon_chain/ssz.nim +++ b/beacon_chain/ssz.nim @@ -306,7 +306,7 @@ func mergeBranches(existing: Eth2Digest, newData: openarray[byte]): Eth2Digest = let paddingBytes = bytesPerChunk - newData.len if paddingBytes > 0: trs "USING ", paddingBytes, " PADDING BYTES" - h.update zeroChunk[0 ..< paddingBytes] + h.update zeroChunk.toOpenArray(0, paddingBytes - 1) trs "HASH RESULT ", result template mergeBranches(a, b: Eth2Digest): Eth2Digest =