diff --git a/eth/tracers/logger/logger.go b/eth/tracers/logger/logger.go index 3294baaaac..cd6e03a500 100644 --- a/eth/tracers/logger/logger.go +++ b/eth/tracers/logger/logger.go @@ -157,6 +157,9 @@ type structLogLegacy struct { } func formatMemoryWord(chunk []byte) string { + if len(chunk) == 32 { + return hexutil.Encode(chunk) + } var word [32]byte copy(word[:], chunk) return hexutil.Encode(word[:])