From 0f020d5df8f2bdc7d363173e865222ce5a3338b2 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Tue, 10 Sep 2019 17:28:38 -0400 Subject: [PATCH] compat with latest chronos --- eth/async_utils.nim | 2 +- eth/common/eth_types_json_serialization.nim | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eth/async_utils.nim b/eth/async_utils.nim index 964bb6b..5256684 100644 --- a/eth/async_utils.nim +++ b/eth/async_utils.nim @@ -1,5 +1,5 @@ import - chronos/[asyncfutures2, asyncloop], chronicles + chronos, chronicles proc catchOrQuit(error: Exception) = if error of CatchableError: diff --git a/eth/common/eth_types_json_serialization.nim b/eth/common/eth_types_json_serialization.nim index f6b7d9e..8b767e7 100644 --- a/eth/common/eth_types_json_serialization.nim +++ b/eth/common/eth_types_json_serialization.nim @@ -1,9 +1,9 @@ import times, net, - json_serialization, nimcrypto/hash, eth_types + json_serialization, nimcrypto/[hash, utils], eth_types proc writeValue*(w: var JsonWriter, a: MDigest) {.inline.} = - w.writeValue $a + w.writeValue a.data.toHex(true) proc readValue*(r: var JsonReader, a: var MDigest) {.inline.} = a = fromHex(type(a), r.readValue(string))