From 7901d050942d10dff78c6e36b83ca0063db66dd5 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Tue, 7 Nov 2023 08:33:10 +0800 Subject: [PATCH] Revert "core/vm: check codehash" This reverts commit e8e45bb7ec620545105305033a20bef3d4b491de. Signed-off-by: jsvisa --- core/vm/contract.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/vm/contract.go b/core/vm/contract.go index ec453d1e6e..e4b03bd74f 100644 --- a/core/vm/contract.go +++ b/core/vm/contract.go @@ -20,7 +20,6 @@ import ( "math/big" "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" "github.com/holiman/uint256" ) @@ -107,7 +106,7 @@ func (c *Contract) isCode(udest uint64) bool { // Do we have a contract hash already? // If we do have a hash, that means it's a 'regular' contract. For regular // contracts ( not temporary initcode), we store the analysis in a map - if c.CodeHash != types.EmptyCodeHash { + if c.CodeHash != (common.Hash{}) { // Does parent context have the analysis? analysis, exist := c.jumpdests[c.CodeHash] if !exist {