2020-05-19 04:34:40 +00:00
|
|
|
import
|
|
|
|
testutils/fuzzing, eth/trie/db,
|
|
|
|
./tree_from_witness, ./witness_types
|
|
|
|
|
2020-05-20 04:49:33 +00:00
|
|
|
# please read instruction in status-im/nim-testutils/fuzzing/readme.md
|
|
|
|
# or status-im/nim-testutils/fuzzing/fuzzing_on_windows.md
|
|
|
|
# if you want to run fuzz test
|
|
|
|
|
2020-05-19 04:34:40 +00:00
|
|
|
test:
|
|
|
|
var db = newMemoryDB()
|
|
|
|
try:
|
|
|
|
var tb = initTreeBuilder(payload, db, {wfEIP170})
|
|
|
|
let root = tb.buildTree()
|
|
|
|
except ParsingError, ContractCodeError:
|
|
|
|
debugEcho "Error detected ", getCurrentExceptionMsg()
|