Magic fix to #209

This commit is contained in:
Mamy André-Ratsimbazafy 2019-03-26 15:48:04 +01:00 committed by zah
parent 2fafa8b1a1
commit 8b5e18b7a4
1 changed files with 2 additions and 1 deletions

View File

@ -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