mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
Revert "clone memory in ScopeContext.MemoryData"
This reverts commit c59e9e5e6b.
This commit is contained in:
parent
c59e9e5e6b
commit
fdfc2c9d03
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue