aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authordm4 <sunrisedm4@gmail.com>2018-04-06 18:43:36 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-04-06 18:43:36 +0800
commit3ebcf92b423e67b58a72a3fc126449e4e97bc4c8 (patch)
tree2e01dc3042fd6fbbeed7ef9c983744629acb5527 /cmd
parentc43792a42cad46a15ee00417d52bd3859a98500c (diff)
downloadgo-tangerine-3ebcf92b423e67b58a72a3fc126449e4e97bc4c8.tar.gz
go-tangerine-3ebcf92b423e67b58a72a3fc126449e4e97bc4c8.tar.zst
go-tangerine-3ebcf92b423e67b58a72a3fc126449e4e97bc4c8.zip
cmd/evm: print vm output when debug flag is on (#16326)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/evm/runner.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/evm/runner.go b/cmd/evm/runner.go
index 8a7399840..c13e9fb33 100644
--- a/cmd/evm/runner.go
+++ b/cmd/evm/runner.go
@@ -76,6 +76,7 @@ func runCmd(ctx *cli.Context) error {
logconfig := &vm.LogConfig{
DisableMemory: ctx.GlobalBool(DisableMemoryFlag.Name),
DisableStack: ctx.GlobalBool(DisableStackFlag.Name),
+ Debug: ctx.GlobalBool(DebugFlag.Name),
}
var (
@@ -234,9 +235,7 @@ Gas used: %d
`, execTime, mem.HeapObjects, mem.Alloc, mem.TotalAlloc, mem.NumGC, initialGas-leftOverGas)
}
- if tracer != nil {
- tracer.CaptureEnd(ret, initialGas-leftOverGas, execTime, err)
- } else {
+ if tracer == nil {
fmt.Printf("0x%x\n", ret)
if err != nil {
fmt.Printf(" error: %v\n", err)