nim-eth/tests/fuzzing/rlp/rlp_inspect.nim

9 lines
203 B
Nim
Raw Normal View History

import chronicles, eth/rlp, ../fuzztest
2019-09-26 16:27:23 +00:00
test:
try:
2019-10-01 10:00:20 +00:00
var rlp = rlpFromBytes(@payload.toRange)
2019-09-26 16:27:23 +00:00
discard rlp.inspect()
except RlpError:
debug "Inspect failed", err = getCurrentExceptionMsg()