From 787df0f39e881623325c7e49dd21d671e8ade2fa Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Wed, 26 Feb 2025 13:13:55 +0100 Subject: [PATCH] core/vm: clean up a bit --- core/vm/instructions.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 {