Skip to content

Commit

Permalink
fix EXTCODECOPY witness for system contract
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign committed Oct 16, 2024
1 parent f1ae1a4 commit a723bcb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/vm/instructions.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@ func opExtCodeCopy(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext)

if interpreter.evm.chainRules.IsVerkle {
addr := common.Address(a.Bytes20())
if _, isPrecompile := interpreter.evm.precompile(addr); isPrecompile {
isSystemContract := interpreter.evm.isSystemContract(addr)
if _, isPrecompile := interpreter.evm.precompile(addr); isPrecompile || isSystemContract {
if !scope.Contract.UseGas(params.WarmStorageReadCostEIP2929) {
return nil, ErrOutOfGas
}
Expand Down

0 comments on commit a723bcb

Please sign in to comment.