|
|
@ -76,6 +76,7 @@ func runCmd(ctx *cli.Context) error { |
|
|
|
logconfig := &vm.LogConfig{ |
|
|
|
logconfig := &vm.LogConfig{ |
|
|
|
DisableMemory: ctx.GlobalBool(DisableMemoryFlag.Name), |
|
|
|
DisableMemory: ctx.GlobalBool(DisableMemoryFlag.Name), |
|
|
|
DisableStack: ctx.GlobalBool(DisableStackFlag.Name), |
|
|
|
DisableStack: ctx.GlobalBool(DisableStackFlag.Name), |
|
|
|
|
|
|
|
Debug: ctx.GlobalBool(DebugFlag.Name), |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var ( |
|
|
|
var ( |
|
|
@ -234,9 +235,7 @@ Gas used: %d |
|
|
|
|
|
|
|
|
|
|
|
`, execTime, mem.HeapObjects, mem.Alloc, mem.TotalAlloc, mem.NumGC, initialGas-leftOverGas) |
|
|
|
`, execTime, mem.HeapObjects, mem.Alloc, mem.TotalAlloc, mem.NumGC, initialGas-leftOverGas) |
|
|
|
} |
|
|
|
} |
|
|
|
if tracer != nil { |
|
|
|
if tracer == nil { |
|
|
|
tracer.CaptureEnd(ret, initialGas-leftOverGas, execTime, err) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
fmt.Printf("0x%x\n", ret) |
|
|
|
fmt.Printf("0x%x\n", ret) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
fmt.Printf(" error: %v\n", err) |
|
|
|
fmt.Printf(" error: %v\n", err) |
|
|
|