From 8bb0cc0ffcbd5788d5b9fcc5eb3ed68a6e95a209 Mon Sep 17 00:00:00 2001 From: jagdeep sidhu Date: Wed, 9 Oct 2024 19:00:34 -0700 Subject: [PATCH] fix opsysblockhash dont pop at end --- core/vm/instructions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/vm/instructions.go b/core/vm/instructions.go index 2ec73747d9..f49e7ca0fc 100644 --- a/core/vm/instructions.go +++ b/core/vm/instructions.go @@ -507,6 +507,7 @@ func opSYSBlockhash(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext num.Clear() return nil, nil } + var upper, lower uint64 upper = interpreter.evm.Context.BlockNumber.Uint64() if upper < 50001 { @@ -519,7 +520,6 @@ func opSYSBlockhash(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext } else { num.Clear() } - scope.Stack.pop() return nil, nil }