Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cmd/evm/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ Gas used: %d
}
if tracer != nil {
tracer.CaptureEnd(ret, initialGas-leftOverGas, execTime, err)
fmt.Printf("0x%x", ret)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the 'proper' solution would be to configure the tracer used to do the printout during CaptureEnd ... it's been a while since i looked at the code, though. Doing it tihs way would cause printing on stdout even if --json flag is used, iiuc, which would break json parsing the output

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good suggestion! I'll check debug flag for printing output.

if err != nil {
fmt.Printf(" error: %v\n", err)
}
} else {
fmt.Printf("0x%x\n", ret)
if err != nil {
Expand Down