fix compilation in runtime_fuzz

This commit is contained in:
Igor Mandrigin 2021-03-16 11:57:52 +01:00
parent 6fbc0cfff8
commit deb1528ca0

View File

@ -27,7 +27,7 @@ import (
func Fuzz(input []byte) int { func Fuzz(input []byte) int {
_, _, err := runtime.Execute(input, input, &runtime.Config{ _, _, err := runtime.Execute(input, input, &runtime.Config{
GasLimit: 12000000, GasLimit: 12000000,
}) }, 1)
// invalid opcode // invalid opcode
if err != nil && len(err.Error()) > 6 && err.Error()[:7] == "invalid" { if err != nil && len(err.Error()) > 6 && err.Error()[:7] == "invalid" {
return 0 return 0