Skip to content

Commit

Permalink
fix for missing result in error condition during trace (erigontech#6815)
Browse files Browse the repository at this point in the history
verified by gateway that the JSON is formed correctly with this change.
  • Loading branch information
hexoscott authored and finiteops committed Apr 10, 2023
1 parent c75cccc commit 8bca14c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions turbo/transactions/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ func TraceTx(
if streaming {
stream.WriteArrayEnd()
stream.WriteObjectEnd()
} else {
stream.WriteNil()
}
return fmt.Errorf("tracing failed: %w", err)
}
Expand Down

0 comments on commit 8bca14c

Please sign in to comment.