diff --git a/nimbus/utils.nim b/nimbus/utils.nim index 35d9571e2..6ee50d693 100644 --- a/nimbus/utils.nim +++ b/nimbus/utils.nim @@ -1,5 +1,7 @@ import eth/trie/db, eth/[trie, rlp, common], nimcrypto +export nimcrypto.`$` + proc calcRootHash[T](items: openArray[T]): Hash256 = var tr = initHexaryTrie(newMemoryDB()) for i, t in items: diff --git a/tests/test_vm_json.nim b/tests/test_vm_json.nim index 21d091c0d..562b2c189 100644 --- a/tests/test_vm_json.nim +++ b/tests/test_vm_json.nim @@ -7,7 +7,7 @@ import unittest, strformat, strutils, sequtils, tables, json, ospaths, times, - byteutils, ranges/typedranges, nimcrypto/[keccak, hash], + byteutils, ranges/typedranges, eth/[rlp, common], eth/trie/db, ./test_helpers, ../nimbus/[constants, errors],