Skip to content

Commit 95f771d

Browse files
committed
fix
Signed-off-by: Ignacio Hagopian <[email protected]>
1 parent 4ecd713 commit 95f771d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/vm/instructions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ func opExtCodeHash(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext)
467467
slot := scope.Stack.peek()
468468
address := common.Address(slot.Bytes20())
469469
if interpreter.evm.chainRules.IsVerkle {
470-
if _, isPrecompile := interpreter.evm.precompile(address); !isPrecompile {
470+
if _, isPrecompile := interpreter.evm.precompile(address); !isPrecompile && !interpreter.evm.isSystemContract(address) {
471471
chargedGas, ok := interpreter.evm.Accesses.TouchBasicData(address[:], false, scope.Contract.UseGas)
472472
if !ok || (chargedGas == 0 && !scope.Contract.UseGas(params.WarmStorageReadCostEIP2929)) {
473473
return nil, ErrExecutionReverted

0 commit comments

Comments
 (0)