cmd/evm: print vm output when debug flag is on.

This commit is contained in:
dm4 2018-03-16 12:18:24 +08:00
parent 322006d0f2
commit 2a9a6f1fcf

View file

@ -236,6 +236,10 @@ Gas used: %d
}
if tracer != nil {
tracer.CaptureEnd(ret, initialGas-leftOverGas, execTime, err)
fmt.Printf("0x%x", ret)
if err != nil {
fmt.Printf(" error: %v\n", err)
}
} else {
fmt.Printf("0x%x\n", ret)
if err != nil {