diff --git a/core/vm/instructions.go b/core/vm/instructions.go index fe63bf007c..42fac28770 100644 --- a/core/vm/instructions.go +++ b/core/vm/instructions.go @@ -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 {