From d6768c4fd27ff58a241cc343f2252adc96abe169 Mon Sep 17 00:00:00 2001 From: lupin17 <59-quanta.middle@icloud.com> Date: Fri, 19 Dec 2025 20:59:33 +0100 Subject: [PATCH] Update util.go --- eth/tracers/internal/util.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/eth/tracers/internal/util.go b/eth/tracers/internal/util.go index 88a9f5db44..70ebe905de 100644 --- a/eth/tracers/internal/util.go +++ b/eth/tracers/internal/util.go @@ -53,13 +53,8 @@ func memoryCopy(m []byte, offset, size int64) (cpy []byte) { return nil } - if len(m) > int(offset) { - cpy = make([]byte, size) - copy(cpy, m[offset:offset+size]) - - return - } - + cpy = make([]byte, size) + copy(cpy, m[offset:offset+size]) return }