Update evm.go

This commit is contained in:
0xcharry 2026-02-06 22:12:47 +01:00 committed by GitHub
parent 777265620d
commit e7e66a6b22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -176,7 +176,7 @@ func NewEVM(blockCtx BlockContext, statedb StateDB, chainConfig *params.ChainCon
default: default:
evm.table = &frontierInstructionSet evm.table = &frontierInstructionSet
} }
var extraEips []int extraEips := make([]int, 0, len(evm.Config.ExtraEips))
if len(evm.Config.ExtraEips) > 0 { if len(evm.Config.ExtraEips) > 0 {
// Deep-copy jumptable to prevent modification of opcodes in other tables // Deep-copy jumptable to prevent modification of opcodes in other tables
evm.table = copyJumpTable(evm.table) evm.table = copyJumpTable(evm.table)