From 95f771ddbc308fd27d34202564d6be422c6a8ea7 Mon Sep 17 00:00:00 2001 From: Ignacio Hagopian Date: Thu, 19 Sep 2024 14:54:24 -0300 Subject: [PATCH] fix Signed-off-by: Ignacio Hagopian --- 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 30969a45398e..481102147a71 100644 --- a/core/vm/instructions.go +++ b/core/vm/instructions.go @@ -467,7 +467,7 @@ func opExtCodeHash(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) slot := scope.Stack.peek() address := common.Address(slot.Bytes20()) if interpreter.evm.chainRules.IsVerkle { - if _, isPrecompile := interpreter.evm.precompile(address); !isPrecompile { + if _, isPrecompile := interpreter.evm.precompile(address); !isPrecompile && !interpreter.evm.isSystemContract(address) { chargedGas, ok := interpreter.evm.Accesses.TouchBasicData(address[:], false, scope.Contract.UseGas) if !ok || (chargedGas == 0 && !scope.Contract.UseGas(params.WarmStorageReadCostEIP2929)) { return nil, ErrExecutionReverted