core/vm: clean up a bit

This commit is contained in:
Marius van der Wijden 2025-02-26 13:13:55 +01:00
parent 057305ace7
commit 787df0f39e
1 changed files with 1 additions and 2 deletions

View File

@ -17,7 +17,6 @@
package vm
import (
"encoding/binary"
"math"
"github.com/ethereum/go-ethereum/common"
@ -979,7 +978,7 @@ func opPush2(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]by
integer = new(uint256.Int)
)
if *pc+2 < codeLen {
scope.Stack.push(integer.SetUint64(uint64(binary.BigEndian.Uint16(scope.Contract.Code[*pc+1 : *pc+3]))))
scope.Stack.push(integer.SetBytes2(scope.Contract.Code[*pc+1 : *pc+3]))
} else if *pc+1 < codeLen {
scope.Stack.push(integer.SetUint64(uint64(scope.Contract.Code[*pc+1]) << 8))
} else {