mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 05:11:37 +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 {
|
func formatMemoryWord(chunk []byte) string {
|
||||||
|
if len(chunk) == 32 {
|
||||||
|
return hexutil.Encode(chunk)
|
||||||
|
}
|
||||||
var word [32]byte
|
var word [32]byte
|
||||||
copy(word[:], chunk)
|
copy(word[:], chunk)
|
||||||
return hexutil.Encode(word[:])
|
return hexutil.Encode(word[:])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue