Update eth/tracers/logger/logger.go

Co-authored-by: Sina M <1591639+s1na@users.noreply.github.com>
This commit is contained in:
Chase Wright 2026-03-27 13:07:53 -05:00 committed by GitHub
parent 82b5b7337a
commit c3c282827b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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[:])