From 9f703765aa343a7fc8f3ad5467303e32a7ad5427 Mon Sep 17 00:00:00 2001 From: Kirk Baird Date: Fri, 25 Jan 2019 16:42:19 +1100 Subject: [PATCH] Minor modification to tree_hash --- eth2/utils/ssz/src/tree_hash.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth2/utils/ssz/src/tree_hash.rs b/eth2/utils/ssz/src/tree_hash.rs index 9d6e75ea9..497d62629 100644 --- a/eth2/utils/ssz/src/tree_hash.rs +++ b/eth2/utils/ssz/src/tree_hash.rs @@ -11,7 +11,7 @@ pub trait TreeHash { /// Note that this will consume 'list'. pub fn merkle_hash(list: &mut Vec>) -> Vec { // flatten list - let (chunk_size, mut chunkz) = list_to_blob(list); + let (mut chunk_size, mut chunkz) = list_to_blob(list); // get data_len as bytes. It will hashed will the merkle root let datalen = list.len().to_le_bytes();