Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cmd/evm/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@ func runCmd(ctx *cli.Context) error {
} else {
hexInput = []byte(ctx.GlobalString(InputFlag.Name))
}
if len(hexInput) % 2 != 0 {
fmt.Println("input length must be even")
os.Exit(1)
}
input := common.FromHex(string(bytes.TrimSpace(hexInput)))

var execFunc func() ([]byte, uint64, error)
Expand Down