Revert "clone memory in ScopeContext.MemoryData"

This reverts commit c59e9e5e6b.
This commit is contained in:
lmittmann 2024-07-16 11:07:59 +02:00
parent c59e9e5e6b
commit fdfc2c9d03

View file

@ -18,7 +18,6 @@ package vm
import ( import (
"fmt" "fmt"
"slices"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/math" "github.com/ethereum/go-ethereum/common/math"
@ -51,7 +50,7 @@ func (ctx *ScopeContext) MemoryData() []byte {
if ctx.Memory == nil { if ctx.Memory == nil {
return nil return nil
} }
return slices.Clone(ctx.Memory.Data()) return ctx.Memory.Data()
} }
// StackData returns the stack data. Callers must not modify the contents // StackData returns the stack data. Callers must not modify the contents