From 1792f99bb0e2aa8cebf1d0abacebf278a42863bc Mon Sep 17 00:00:00 2001 From: Matthieu Vachon Date: Wed, 2 Aug 2023 14:07:24 -0400 Subject: [PATCH] Few small changes around the patch --- eth/tracers/firehose.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/eth/tracers/firehose.go b/eth/tracers/firehose.go index 1dc63f32cc..a31c93cb4a 100644 --- a/eth/tracers/firehose.go +++ b/eth/tracers/firehose.go @@ -498,7 +498,9 @@ func (f *Firehose) callEnd(source string, output []byte, gasUsed uint64, err err // // New chain should turn the logic into: // - // if !call.ExecutedCode && f.isPrecompiledAddr(common.BytesToAddress(call.Address)) { call.ExecutedCode = true } + // if !call.ExecutedCode && f.isPrecompiledAddr(common.BytesToAddress(call.Address)) { + // call.ExecutedCode = true + // } // // At this point, `call.ExecutedCode`` is tied to `EVMInterpreter#Run` execution (in `core/vm/interpreter.go`) @@ -1369,7 +1371,15 @@ func (r *receiptView) String() string { return "" } - return fmt.Sprintf("[status=%d, gasUsed=%d, logs=%d]", r.Status, r.GasUsed, len(r.Logs)) + status := "unknown" + switch r.Status { + case types.ReceiptStatusSuccessful: + status = "success" + case types.ReceiptStatusFailed: + status = "failed" + } + + return fmt.Sprintf("[status=%s, gasUsed=%d, logs=%d]", status, r.GasUsed, len(r.Logs)) } func emptyBytesToNil(in []byte) []byte {