mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 09:51:36 +00:00
Update eth/tracers/logger/logger.go
Co-authored-by: Sina M <1591639+s1na@users.noreply.github.com>
This commit is contained in:
parent
82b5b7337a
commit
c3c282827b
1 changed files with 3 additions and 0 deletions
|
|
@ -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[:])
|
||||
|
|
|
|||
Loading…
Reference in a new issue