mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-10 20:36:31 +00:00
16 lines
465 B
Nim
16 lines
465 B
Nim
import
|
|
testutils/fuzzing, eth/trie/db,
|
|
./tree_from_witness, ./witness_types
|
|
|
|
# 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
|
|
|
|
test:
|
|
var db = newMemoryDB()
|
|
try:
|
|
var tb = initTreeBuilder(payload, db, {wfEIP170})
|
|
let root = tb.buildTree()
|
|
except ParsingError, ContractCodeError:
|
|
debugEcho "Error detected ", getCurrentExceptionMsg()
|