From 8b5e18b7a44b5c70f01025e7bbe9456b130326b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mamy=20Andr=C3=A9-Ratsimbazafy?= Date: Tue, 26 Mar 2019 15:48:04 +0100 Subject: [PATCH] Magic fix to #209 --- beacon_chain/spec/digest.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beacon_chain/spec/digest.nim b/beacon_chain/spec/digest.nim index 48260341b..32d38d774 100644 --- a/beacon_chain/spec/digest.nim +++ b/beacon_chain/spec/digest.nim @@ -32,7 +32,8 @@ type Eth2Hash* = keccak256 ## Context for hash function func shortLog*(x: Eth2Digest): string = - ($x)[0..7] + # result = is needed to fix + result = ($x)[0..7] func eth2hash*(v: openArray[byte]): Eth2Digest = var tmp = Eth2Hash.digest v