From 4ea493e7eb9fa3b3695a22487de2605e8da1d2fa Mon Sep 17 00:00:00 2001 From: kiel barry Date: Wed, 9 May 2018 00:38:03 -0700 Subject: cmd: various golint fixes (#16700) * cmd: various golint fixes * cmd: update to pr change request * cmd: update to pr change request --- cmd/evm/json_logger.go | 2 ++ cmd/evm/staterunner.go | 2 ++ 2 files changed, 4 insertions(+) (limited to 'cmd/evm') diff --git a/cmd/evm/json_logger.go b/cmd/evm/json_logger.go index 0e7a91189..f16424fbe 100644 --- a/cmd/evm/json_logger.go +++ b/cmd/evm/json_logger.go @@ -32,6 +32,8 @@ type JSONLogger struct { cfg *vm.LogConfig } +// NewJSONLogger creates a new EVM tracer that prints execution steps as JSON objects +// into the provided stream. func NewJSONLogger(cfg *vm.LogConfig, writer io.Writer) *JSONLogger { return &JSONLogger{json.NewEncoder(writer), cfg} } diff --git a/cmd/evm/staterunner.go b/cmd/evm/staterunner.go index 071ea94ad..6d5ff069f 100644 --- a/cmd/evm/staterunner.go +++ b/cmd/evm/staterunner.go @@ -38,6 +38,8 @@ var stateTestCommand = cli.Command{ ArgsUsage: "", } +// StatetestResult contains the execution status after running a state test, any +// error that might have occurred and a dump of the final state if requested. type StatetestResult struct { Name string `json:"name"` Pass bool `json:"pass"` -- cgit v1.2.3