From 1575ded58910706409abf427ed713bb5421b5a28 Mon Sep 17 00:00:00 2001 From: Viktor Kirilov Date: Wed, 22 Apr 2020 16:13:05 +0300 Subject: [PATCH] exported the right overloads for serializing hashes properly to json (and not as byte arrays) --- beacon_chain/spec/digest.nim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/beacon_chain/spec/digest.nim b/beacon_chain/spec/digest.nim index 584d6711c..7db7bf45f 100644 --- a/beacon_chain/spec/digest.nim +++ b/beacon_chain/spec/digest.nim @@ -25,10 +25,11 @@ import chronicles, nimcrypto/[sha2, hash], stew/byteutils, - hashes + hashes, + eth/common/eth_types_json_serialization export - hash.`$`, sha2 + hash.`$`, sha2, writeValue, readValue type Eth2Digest* = MDigest[32 * 8] ## `hash32` from spec