From 9d48d0e718cff78494e5893b30e28d1e78161e33 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Thu, 16 May 2019 18:53:28 +0300 Subject: [PATCH] Fix https://github.com/status-im/nim-serialization/issues/5 --- tests/official/fixtures_utils.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/official/fixtures_utils.nim b/tests/official/fixtures_utils.nim index 44ca2c304d..c72628a41b 100644 --- a/tests/official/fixtures_utils.nim +++ b/tests/official/fixtures_utils.nim @@ -7,7 +7,8 @@ import ../../beacon_chain/spec/[datatypes, crypto, digest], ../../beacon_chain/ssz -export nimcrypto.toHex +export + nimcrypto.toHex, json_serialization, readValue, writeValue type # TODO: use ref object to avoid allocating @@ -110,7 +111,6 @@ proc readValue*[N: static int](r: var JsonReader, a: var array[N, byte]) {.inlin proc readValue*(r: var JsonReader, a: var ValidatorIndex) {.inline.} = a = r.readValue(uint32) -export json_serialization # TODO: cannot pass a typedesc proc parseTests*(jsonPath: string, T: typedesc[Tests]): T = # TODO: due to generic early symbol resolution @@ -151,4 +151,4 @@ proc build_empty_block_for_next_slot*(state: BeaconState): BeaconBlock = # prev_root, # BeaconBlockBody() # ) - {.error: "Not implemented".} \ No newline at end of file + {.error: "Not implemented".}