aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/evm/staterunner.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/evm/staterunner.go')
-rw-r--r--cmd/evm/staterunner.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/evm/staterunner.go b/cmd/evm/staterunner.go
index bee1b34dc..6d5ff069f 100644
--- a/cmd/evm/staterunner.go
+++ b/cmd/evm/staterunner.go
@@ -107,7 +107,7 @@ func stateTestCmd(ctx *cli.Context) error {
}
// print state root for evmlab tracing (already committed above, so no need to delete objects again
if ctx.GlobalBool(MachineFlag.Name) && state != nil {
- fmt.Fprintf(ctx.App.ErrWriter, "{\"stateRoot\": \"%x\"}\n", state.IntermediateRoot(false))
+ fmt.Fprintf(os.Stderr, "{\"stateRoot\": \"%x\"}\n", state.IntermediateRoot(false))
}
results = append(results, *result)
@@ -115,13 +115,13 @@ func stateTestCmd(ctx *cli.Context) error {
// Print any structured logs collected
if ctx.GlobalBool(DebugFlag.Name) {
if debugger != nil {
- fmt.Fprintln(ctx.App.ErrWriter, "#### TRACE ####")
- vm.WriteTrace(ctx.App.ErrWriter, debugger.StructLogs())
+ fmt.Fprintln(os.Stderr, "#### TRACE ####")
+ vm.WriteTrace(os.Stderr, debugger.StructLogs())
}
}
}
}
out, _ := json.MarshalIndent(results, "", " ")
- fmt.Fprintln(ctx.App.Writer, string(out))
+ fmt.Println(string(out))
return nil
}