Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contract call and contract creation refactor #252

Merged
merged 12 commits into from
Feb 27, 2019
Prev Previous commit
Next Next commit
make test green
  • Loading branch information
jangko committed Feb 27, 2019
commit 67df7d8ac79ff6f885bf2436cc9301d510e4d386
2 changes: 2 additions & 0 deletions nimbus/utils.nim
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_vm_json.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down