vm: removed logging to fix #457

This commit is contained in:
Vsevolod Brekelov 2019-11-22 17:16:52 +03:00
parent 03ff2976ed
commit f5e2401984
4 changed files with 64 additions and 46 deletions

View file

@ -280,9 +280,11 @@ func contractCompile(ctx *cli.Context) error {
Debug: ctx.Bool("debug"),
}
if err := compiler.CompileAndSave(src, o); err != nil {
result, err := compiler.CompileAndSave(src, o)
if err != nil {
return cli.NewExitError(err, 1)
}
fmt.Println(hex.EncodeToString(result))
return nil
}